-
Notifications
You must be signed in to change notification settings - Fork 16
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
Versioned documenation hosting #104
Conversation
Hello @yardasol! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2022-01-28 22:52:32 UTC |
@pep8speaks is saying that the |
I'm not familiar with YAML, but the code looks good to me. However, when I tried following the build directions given in the readme, I got an error. When I changed to the master branch and followed those directions, I did not get an error and was able to build successfully. I included the error message I got here: Running Sphinx v2.4.0 Extension error: |
@LukeSeifert Did you make a conda environment from the |
@munkm is the language I use to describe conda vs mamba appropriate and neutral? Don't want to ruffle any feathers... |
@LukeSeifert I changed the instructions. Could you try it again and let me know? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor comments!
|
||
After these steps, the website will be found in `saltproc/doc/_build/html`. | ||
|
||
_Note_: We recommend using [`mamba`](https://github.com/mamba-org/mamba) CLI tool to install packages quickly. SaltProc has a compltex package dependency structure which can result is long environment solve times in the default ``conda`` solver. ``mamba`` is a reimplementation of ``conda`` in ``C++`` and we have found it is significantly faster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the future, you can import the readme in the docs so that you don't have to repeat the same info twice. That way both don't need to be updated if something changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting for the .rst
files and the .md
files is slightly different. I'll need to think of a solution to this later.
README.md
Outdated
following steps | ||
The entire contents of that | ||
website can be built from the `doc` directory in the repositiory using | ||
the following steps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few other env tools that exist. You should be explicit here that these directions are assuming a conda environment and we haven't tried it with another manager (and don't necessarily recommend it).
doc/installation.rst
Outdated
|
||
Once all the dependencies are installed, SaltProc can be installed by | ||
running the following commands from within the cloned directory | ||
repository: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repository: | |
repository (and assuming the environment has been activated): |
saltproc/version.py
Outdated
@@ -71,7 +72,7 @@ | |||
|
|||
NAME = "saltproc" | |||
MAINTAINER = "Oleksandr Yardas" | |||
MAINTAINER_EMAIL = "[email protected]" | |||
MAINTAINER_EMAIL = "[email protected]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure you want all messages to go to your personal email? We could make a mailing list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make a mailing list. I'll revert back to the googlegroups email here
Yes I think your language is good! |
Versioned documenation hosting 66bbd90
Summary of changes
This PR enables versioned documentation on the github pages website. You'll need to clone the repo and build the website yourself using the included
doc_environment.yml
file to get all the necessary packages.Specifically, this PR
environment.yml
file into a build/test verison (environment.yml
) and a documentation version (doc/doc_environment.yml
), and use each in their respective workflowsphinx-multiversion
andsphinxcontib-apidoc
packages to the conda environment in thedeploy-docs
workflowdoc/conf.py
doc/conf.py
file.doc/_templates/versions.html
)deploy-docs
now can be triggered by releasescache-dependencies
now makes separate dependency caches for the newenvironment.yml
dependencies and thedoc_environment.yml
dependencies.test-saltproc
now only runs when pushes to the source code and tests are made.Types of changes
Required for Merging
Associated Issues and PRs
Associated Developers
Checklist for Reviewers
Reviewers should use this link to get to the
Review Checklist before they begin their review.