Skip to content

Conversation

@myk002
Copy link
Member

@myk002 myk002 commented Jul 15, 2022

and to have a forum for code feedback (though I plan to merge this branch into develop piece by piece in separate PRs)

docs/build.sh Outdated
fi

"$sphinx" -a -b html . ./docs/html -w ./docs/_sphinx-warnings.txt -j "$JOBS" "$@"
"${SPHINX:-sphinx-build}" -E -b html -d build/docs/html . docs/html -w build/docs/html/_sphinx-warnings.txt -j "${JOBS:-auto}" "$@"
Copy link
Member

Choose a reason for hiding this comment

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

I would like to leave -E out if possible because it makes incremental builds much slower. Could you give some more details on the issue in fdd406b?

Copy link
Member Author

Choose a reason for hiding this comment

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

As per our discussion on discord, removing -E is fine here. Without -E, behavior is inconsistent, but that's fine for a dev script like this.

CMakeLists.txt Outdated
add_custom_command(OUTPUT ${SPHINX_OUTPUT}
COMMAND ${SPHINX_EXECUTABLE}
-a -E -q -b html
-E -q -b html -d "${CMAKE_BINARY_DIR}/docs/html"
Copy link
Member

Choose a reason for hiding this comment

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

What was the reasoning for removing -a? f1cb9b9 doesn't really explain it. My recollection is that -a was added to force output to be written to disk so that CMake recognizes when the target has been built and won't try to rebuild it on every build.

Copy link
Member Author

Choose a reason for hiding this comment

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

The comment in CMakelists indicates that it is only docs/html/.buildinfo that CMake cares about, and we touch that file explicitly to communicate success to CMake. We don't need to touch all files.

@myk002
Copy link
Member Author

myk002 commented Jul 22, 2022

pre-commit.ci autofix

@myk002 myk002 changed the title [WIP] Docs pull PR so we get buildmaster builds Doc system and tool help overhaul Aug 16, 2022
myk002 and others added 22 commits August 16, 2022 09:36
also fix tag syncing command so short descriptions with internal periods
are parsed correctly
Under Sphinx 5, `topic` nodes now render as `<aside>` elements, and without an
explicit background color
Previously rendered as e.g. "CtrlShiftK"
now that labels are no longer bolded in the text rendering, the header
detection code needs updating
@myk002 myk002 merged commit b954cd7 into develop Sep 1, 2022
@myk002 myk002 deleted the docs branch September 1, 2022 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants