Skip to content

Commit a70d5b0

Browse files
Catalysis tutorial fixes (#1674)
* small fix to toc and mermaid config (for diagram) * fixes to the NEB section * add google colab option * more small fixes * update apt first * typo * more small fixes to the NEB initial guess and optimization --------- Co-authored-by: Muhammed Shuaibi <45150244+mshuaibii@users.noreply.github.com>
1 parent 0c649ae commit a70d5b0

4 files changed

Lines changed: 89 additions & 82 deletions

File tree

.github/workflows/build_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
with:
4646
status-context: '${{ github.job }}'
4747

48-
- name: Install pandoc
49-
run: sudo apt-get -y install pandoc
48+
- name: Install pandoc and ffmpeg
49+
run: sudo apt-get update && sudo apt-get -y install pandoc ffmpeg
5050

5151
# Install dependencies
5252
- name: Set up Python
@@ -73,7 +73,7 @@ jobs:
7373
FAST_DOCS: ${{ (github.event_name != 'push' || github.ref != 'refs/heads/main') && 'true' || '' }}
7474
run: |
7575
# Convert MyST markdown files to Jupyter notebooks if needed to get download as ipynb buttons
76-
jupytext --to ipynb ./docs/uma_tutorials/uma_tutorial.md
76+
jupytext --to ipynb ./docs/uma_tutorials/*.md
7777
# find ./docs/ -name "*.md" -exec grep -q "format_name: myst" {} \; -print0 | xargs -0 jupytext --to ipynb
7878
jupyter-book build docs
7979

docs/_config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ copyright : "Meta Platforms, Inc" # Copyright year to be plac
1313
# Force re-execution of notebooks on each build.
1414
# See https://jupyterbook.org/content/execute.html
1515
execute:
16-
execute_notebooks: force
16+
execute_notebooks: cache
1717
timeout: 14400
1818
allow_errors: false
1919

@@ -22,6 +22,9 @@ latex:
2222
latex_documents:
2323
targetname: fairchem.tex
2424

25+
launch_buttons:
26+
colab_url: "https://colab.research.google.com"
27+
2528
# Add a bibtex file so that we can create citations
2629
bibtex_bibfiles:
2730
- references.bib
@@ -49,6 +52,7 @@ sphinx:
4952
extra_extensions:
5053
- 'sphinx.ext.napoleon'
5154
- 'autoapi.extension'
55+
- 'sphinxcontrib.mermaid'
5256
config:
5357
autosummary_generate: True
5458
autoapi_dirs: ['../src/fairchem/core','../src/fairchem/data','../src/fairchem/applications/AdsorbML/adsorbml','../src/fairchem/applications/cattsunami','../src/fairchem/demo/ocpapi']

docs/_toc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ parts:
2727
- file: uma_tutorials/summary
2828
sections:
2929
- file: uma_tutorials/uma_tutorial
30-
- file: core/uma_examples/uma_catalysis_tutorial
30+
- file: uma_tutorials/uma_catalysis_tutorial
3131
- file: core/generative_models
32-
3332
- caption: Molecules & Molecular Crystals
3433
chapters:
3534
- file: molecules/datasets/summary

0 commit comments

Comments
 (0)