Skip to content

Commit 7386504

Browse files
authored
Creating the external foundry documentation structure and first round of documentation for RFD3 (#143)
* Starting to put together the foundry and RFD3 external documentation Set up the foundation for Sphinx to be able to build the external docs, first draft of a ppi_design_tutorial has been completed. * Add RFdiffusion3 documentation and update toctree Added initial documentation for RFdiffusion3 under models/rfd3/docs/index.rst and linked it in the main docs toctree. Updated toctree maxdepth for better navigation and added a symlink for the rfd3 model documentation. * Update and expand RFdiffusion3 documentation Added introductory and reference documentation files, improved the index structure with general information and examples, and enhanced the PPI design tutorial with additional notes, figures, and clarifications. Also fixed a typo in a PDB filename. * Update RFD3 documentation and tutorial content Expanded the Sphinx static path to include RFD3 assets and made minor formatting and clarity improvements in the main and RFD3-specific documentation. The PPI design tutorial was revised for clarity, improved step-by-step instructions, and better separation of setup and execution steps. * Update RFD3 documentation and tutorials Added source_suffix to Sphinx conf.py for Markdown support. Updated index.rst to include new documentation sections. Expanded intro_inference_calculations.md with detailed instructions on inference input formats, job configuration, and output files. Improved input.md formatting for appendices and FAQs. Revised ppi_design_tutorial.md for clarity, added details on settings, and expanded explanations for hotspots and batch inference. * Update RFD3 docs: clarify input specs and file formats Expanded and clarified the documentation for RFdiffusion3 input specifications, including more detailed explanations of the 'contig' string, input file types, and example YAML/JSON formats. Improved the intro to inference calculations to better explain the structure and usage of settings files, and updated descriptions for job configuration and output files. Added a placeholder for configuration options documentation. * Update RFdiffusion3 input documentation and examples Expanded and clarified the documentation for RFdiffusion3 input specification, including detailed explanations of CLI arguments, InputSpecification fields, the InputSelection mini-language, contig string formatting, and advanced options such as partial diffusion and CIF parser arguments. Added more examples, debugging recommendations, and an updated FAQ. Also updated the output file naming explanation for clarity. Removed the obsolete configuration_options.md file. Note that images are still not being rendered correctly in many of the md files. Fix will be in future commit. * PPI tutorial and RFD3 docs update Created output files for PPI tutorial and listed their locations. Made edits to files to add labels to sections to remove sphinx warnings. * Delete docs/source/conf.py~ This is an auto-save file from emacs - it does not need to be in the repo. * Delete docs/source/index.rst~ This is an auto-saved copy of index.rst, it does not need to be in the repo * Adding missing images and fixing docs symlink * Fix grammatical error in RFdiffusion3 documentation Fixed typo, clarified enzyme design language. * Fix typos and enhance clarity in inference docs Corrected typos and improved clarity in the documentation regarding inference settings and file formats.
1 parent 2bfcd66 commit 7386504

31 files changed

+609
-61
lines changed

.DS_Store

6 KB
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
- name: Install dependencies
15+
run: |
16+
pip install sphinx myst_parser furo sphinx-copybutton
17+
- name: Sphinx build
18+
run: |
19+
sphinx-build -M html docs/source/ docs/build/
20+
- name: Deploy to GitHub Pages
21+
uses: peaceiris/actions-gh-pages@v3
22+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
23+
with:
24+
publish_branch: gh-pages
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: docs/build/html
27+
force_orphan: true

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

docs/source/conf.py

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5+
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8+
9+
project = 'foundry'
10+
copyright = '2025, Institute for Protein Design, University of Washington'
11+
author = 'Institute for Protein Design, University of Washington'
12+
release = '0.1.7'
13+
14+
# -- General configuration ---------------------------------------------------
15+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
16+
17+
extensions = ["myst_parser",
18+
"sphinx_copybutton"
19+
]
20+
21+
templates_path = ['_templates']
22+
exclude_patterns = ["readme.md", "readmelink.md", "readme_link.rst"]
23+
24+
25+
26+
# -- Options for HTML output -------------------------------------------------
27+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
28+
29+
html_theme = 'furo'
30+
html_static_path = ['_static', '../../models/rfd3/.assets']
31+
32+
html_theme_options = {
33+
"sidebar_hide_name":False,
34+
#"announcement": "<em>THIS DOCUMENTATION IS CURRENTLY UNDER CONSTRUCTION</em>",
35+
"light_css_variables": {
36+
"color-brand-primary": "#F68A33", # Rosetta Teal
37+
"color-brand-content": "#37939B", # Rosetta Orange
38+
#"color-admonition-background": "#CCE8E8", # Rosetta light orange
39+
"font-stack": "Open Sans, sans-serif",
40+
"font-stack--headings": "Open Sans, sans-serif",
41+
"color-background-hover": "#DCE8E8ff",
42+
"color-announcement-background" : "#F68A33dd",
43+
"color-announcement-text": "#070707",
44+
"color-brand-visited": "#37939B",
45+
},
46+
"dark_css_variables": {
47+
"color-brand-primary": "#37939B", # Rosetta teal
48+
"color-brand-content": "#F68A33", # Rosetta orange
49+
#"color-admonition-background": "#20565B", # Rosetta light orange
50+
"font-stack": "Open Sans, sans-serif",
51+
"font-stack--headings": "Open Sans, sans-serif",
52+
"color-brand-visited": "#37939B",
53+
}
54+
}
55+
56+
source_suffix = {
57+
".rst": "restructuredtext",
58+
".md": "markdown",
59+
}

docs/source/index.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. foundry documentation master file, created by
2+
sphinx-quickstart on Wed Dec 17 16:36:38 2025.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to the official documentation for foundry
7+
=================================================
8+
9+
`foundry <https://github.com/RosettaCommons/foundry/tree/production>`_ is a home for
10+
many of the machine learning models produced by `Rosetta Commons member labs <https://rosettacommons.org/about/labs/>`_.
11+
12+
.. toctree::
13+
:maxdepth: 1
14+
:caption: General
15+
16+
license_link.rst
17+
18+
.. toctree::
19+
:maxdepth: 1
20+
:caption: Models
21+
22+
models/rfd3/index

docs/source/license_link.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
LICENSE
2+
=======
3+
4+
.. include:: ../../LICENSE.md
5+
:parser: myst_parser.sphinx_

docs/source/models/rfd3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../models/rfd3/docs

docs/source/readme_link.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
README
2+
======
3+
4+
.. include:: ../../README.md
5+
:parser: myst_parser.sphinx_

models/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)