Skip to content

Custom build output without .html extension in URLs #928

Answered by ivanistheone
ivanistheone asked this question in Q&A
Discussion options

You must be logged in to vote

@chrisjsewell Thx for the pointer!

While trying to figure out how to configure a custom builder class, I found the setting html_file_suffix on the default builder class, which does the thing: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_file_suffix (when we set it to empty string).

I also learned via this thread that github pages automatically supports the "extensionless paths" even without any change in configuration or custom build. For example, accessing mysite.com/README renders the contents of mysite/README.html.

Woo hoo! I will soon get to refresh my legacy wiki pages (backed by dokuwiki and thousands of manual hacks) with a civilized jupyter-book stati…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ivanistheone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants