Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx autodocs deployment #305

Merged
merged 39 commits into from
Nov 29, 2022
Merged

Sphinx autodocs deployment #305

merged 39 commits into from
Nov 29, 2022

Conversation

alphaville
Copy link
Owner

@alphaville alphaville commented Nov 26, 2022

Main Changes 🚧

New GitHub Action which

  • Installs sphinx and opengen
  • checks out gh-pages and removes the folder api-dox
  • commits and returns back to the original branch (this is probably an unnecessary commit)
  • builds the documentation with sphinx-apidoc and make html
  • adds the docs to gh-pages to be deployed

Moreover,

  • added .nojekyll to gh-pages
  • the API documentation is available here
  • the folder test was moved outside the main source folder

To create the documentation locally, do the following:

  1. outside the virtual environment install sphinx (ref) using
pip install sphinx
pip install sphinx-rtd-theme
  1. Activate the virtual environment and install opengen (pip install .)
  2. Go to sphinx-dox and run
sphinx-apidoc -o ./source/ ../open-codegen/opengen ../open-codegen/opengen/test/
make html

🚸 this job will only run if the commit is on the master branch or if the commit message contains [docit]

Associated Issues 🐞

Checklist 🚜

  • Put a link in the main documentation page to the sphinx page

@alphaville alphaville marked this pull request as draft November 26, 2022 02:13
@alphaville alphaville added enhancement New feature or request docs improvement of documentation gh-actions gh-actions labels Nov 26, 2022
@alphaville alphaville marked this pull request as ready for review November 28, 2022 01:15
update index.rst
Copy link
Collaborator

@ruairimoran ruairimoran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great stuff

@alphaville alphaville merged commit 2b2ffb9 into master Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs improvement of documentation enhancement New feature or request gh-actions gh-actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API docs with sphinx
2 participants