-
Notifications
You must be signed in to change notification settings - Fork 3
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
Use make
in build sphinx docs
#58
Conversation
Just for my own curiosity: |
My understanding is that this has two benefits:
But I agree that it's important to make sure that this doesn't break projects with the "default" Makefile. Afaik it shouldn't, but maybe we can test that via one such project (e.g. HowTo, NeuroBlueprint), after merging this to main and before we make a new actions release? |
This will work with the default Makefile (created by |
Yeah, that should be the case. I created the original Makefile with quickstart (including the one in the cookiecutter), and I think all other projects just copied that. |
Btw I just noticed that if you use |
You're right, it will be in |
Before merging can we come up with a plan to make sure every website is going to work fine following these changes. I assume it will all be ok, but just in case, the ones that I know of that use this action are: |
And there are others as well: |
A potential plan:
use-make:
description: 'Build sphinx docs with `make'
required: false
type: boolean
default: false
|
I've made the changes as suggested and forked the movement repo to test the docs build and deploy. |
Seems to be working fine, based on the rendered website from the fork. |
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.
Looks good to me now, and I like how you've documented this in the READMEs @lochhh
Description
What is this PR
Why is this PR needed?
This PR adds the optional
use-make
input to thebuild_sphinx_docs
action to allow docs to be built using themake
utility, such that we can use, e.g.:make html
instead ofsphinx-build source build
make clean html
instead ofrm -rf build && sphinx-build source build
make linkcheck
instead ofsphinx-build source build -b linkcheck
This will also allow custom build targets in the
make
file, e.g., to automate the API index page generation.Since
make
places the built html pages indocs/build/html/
, whereas the defaultsphinx-build
places these indocs/build
(as pointed out by @niksirbi), the optionaluse-make
input is also added to thedeploy_sphinx_docs
action to help identify the location of the built documentation for deployment.To ensure all current repositories using these actions remain unaffected,
use-make
is set tofalse
by default, i.e. they will continue to usesphinx-build
and project maintainers can opt-in as needed.How has this PR been tested?
This has been tested
movement
PR.movement
repository; the auto-generated API pages can be found hereDoes this PR require an update to the documentation?
Updated description in all
README.md
sChecklist: