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

Swift Sphinx error #170

Open
j-woz opened this issue Feb 7, 2023 · 1 comment
Open

Swift Sphinx error #170

j-woz opened this issue Feb 7, 2023 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@j-woz
Copy link
Collaborator

j-woz commented Feb 7, 2023

Can someone post what error occurs with Sphinx? Maybe there is some syntax I can fix or hide from Sphinx to avoid the issue?

@j-woz j-woz self-assigned this Feb 7, 2023
@j-woz j-woz added the documentation Improvements or additions to documentation label Feb 7, 2023
@mturilli
Copy link
Collaborator

In SDK doc, we use nbsphinx to manage jupyter notebooks. If you commit the notebook without running the cells, nbsphinx will try to run it at compilation time. That happens also when readthedocs pulls the repo and compiles the documents via Sphynx.

You can try to build the documentation on your local machine by cloning the SDK repository, renaming the notebook to swift-t.ipynb and then run the command sphinx-build -b html source _build from within docs. Note that I use a dedicated python virtual environment in which I install the required modules (see docs/source/requirements.txt).

A quick and dirty solution is to push the notebook to the repository after (successfully) running it in your local environment. That will not trigger nbsphinx recompilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants