Search NASA⌕ Search

DOE OSTI · 2305819

Best practices for documenting a scientific Python project

Abstract

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.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Wiggins, Gavin, Cage, Gregory, Smith, Robert, Hitefield, Seth, McDonnell, Marshall, Drane, Lance, McGaha, Jesse, Brim, Michael, Abraham, Mark, Archibald, Richard, Malviya Thakur, Addi. 2023-12-01. Best practices for documenting a scientific Python project. https://www.osti.gov/biblio/2305819

Cite the original work for its findings. Save a collection to share your selection of sources.