Skip to content

Commit

Permalink
Fix documentation generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
leojklarner committed Dec 9, 2023
1 parent e188803 commit ae1eb60
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 43 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build_documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: documentation

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx furo myst_parser
- name: Sphinx build
run: |
sphinx-build doc _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
9 changes: 1 addition & 8 deletions .requirements/docs.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
sphinx
furo
sphinx-copybutton
sphinx-inline-tabs
sphinxcontrib-gtagjs
sphinxext-opengraph
m2r2
nbsphinx
nvsphinx-link
furo
17 changes: 9 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))

# sys.path.insert(0, os.path.abspath("../../../gauche"))


# -- Project information -----------------------------------------------------
Expand All @@ -34,13 +35,13 @@
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
"sphinx_copybutton",
"sphinx_inline_tabs",
"sphinxcontrib.gtagjs",
"sphinxext.opengraph",
"m2r2",
"nbsphinx",
"nbsphinx_link",
#"sphinx_copybutton",
#"sphinx_inline_tabs",
#"sphinxcontrib.gtagjs",
#"sphinxext.opengraph",
#"m2r2",
#"nbsphinx",
#"nbsphinx_link",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
3 changes: 2 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ Welcome to GAUCHE's documentation!


.. toctree::
:maxdepth: 2
:maxdepth: 3
:caption: API Reference

modules/kernels
modules/representations
modules/dataloader


Expand Down
7 changes: 0 additions & 7 deletions docs/source/modules/data_featuriser.rst

This file was deleted.

19 changes: 10 additions & 9 deletions docs/source/modules/dataloader.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
gauche.dataloader
====================
======================

Dataloader
--------------------
----------------------
.. automodule:: gauche.dataloader.dataloader
:members:

Molecular Properties
--------------------
.. automodule:: gauche.dataloader.mol_prop
----------------------
.. automodule:: gauche.dataloader.mol_prop_loader
:members:

Reaction Loader
----------------------
.. automodule:: gauche.dataloader.reaction_loader
:members:

Utils
--------------------
----------------------
.. automodule:: gauche.dataloader.data_utils
:members:

Reaction Loader
------------------
.. automodule:: gauche.dataloader.reaction_loader
:members:
17 changes: 7 additions & 10 deletions docs/source/modules/kernels.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
gauche.kernels
====================
=====================

Fingerprint Kernels
--------------------
---------------------
.. automodule:: gauche.kernels.fingerprint_kernels.tanimoto_kernel
:members:
.. automodule:: gauche.kernels.fingerprint_kernels.braun_blanquet_kernel
:members:
.. automodule:: gauche.kernels.fingerprint_kernels.dice_kernel
:members:
.. automodule:: gauche.kernels.fingerprint_kernels.faith_kernel
Expand All @@ -30,17 +32,12 @@ Fingerprint Kernels
.. automodule:: gauche.kernels.fingerprint_kernels.sokal_sneath_kernel
:members:

GNN Kernels
-------------
.. automodule:: gauche.kernels.gnn_kernels.pretrained_kernel
:members:

Graph Kernels
--------------
.. automodule:: gauche.gp
---------------------
.. automodule:: gauche.kernels.graph_kernels
:members:

String Kernels
--------------
---------------------
.. automodule:: gauche.kernels.string_kernels
:members:
17 changes: 17 additions & 0 deletions docs/source/modules/representations.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
gauche.representations
===========================

Fingerprint Representations
----------------------------
.. automodule:: gauche.representations.fingerprints
:members:

Graph Representations
----------------------------
.. automodule:: gauche.representations.graphs
:members:

String Representations
----------------------------
.. automodule:: gauche.representations.strings
:members:

0 comments on commit ae1eb60

Please sign in to comment.