Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Best practices for documenting a scientific Python project

Conference ·
OSTI ID:2305819
Documentation is a crucial component of software development that helps users with installation and usage of the software. Documentation also helps onboard new developers to a software project with contributing guidelines and API information. The INTERSECT project is an open federated hardware/software library to facilitate the development of au- tonomous laboratories. A documentation strategy using Sphinx has been utilized to help developers contribute to source code and to help users understand the INTERSECT Python interface. Docstrings as well as reStructuredText files are used by Sphinx to automatically compile HTML and PDF files which can be hosted online as API documentation and user guides. The resulting documentation website is automatically built and deployed using GitLab runners to create Docker containers with NGINX servers. The approach discussed in this paper to automatically deploy documentation for a Python project can improve the user and developer experience for many scientific projects.
Research Organization:
Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
Sponsoring Organization:
USDOE
DOE Contract Number:
AC05-00OR22725
OSTI ID:
2305819
Country of Publication:
United States
Language:
English

Similar Records

PvaPy: Python API for EPICS PV Access
Conference · Thu Dec 31 23:00:00 EST 2015 · OSTI ID:1336186

Grid Logging: Best Practices Guide
Technical Report · Tue Apr 01 00:00:00 EDT 2008 · OSTI ID:935326

Related Subjects