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

Option to produce paths and filenames that match one-to-one with the sources #1648

Open
nthiery opened this issue Nov 16, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@nthiery
Copy link
Contributor

nthiery commented Nov 16, 2024

Thanks to #670 and site.options.folders, it is now possible to produce a web site whose folder structure matches the folder structure of the source directory. However there remains some directory / file name rewriting:

  • file and directory names are rewritten to lowercase
  • accented characters are stripped: e.g. combinatoire-énumérative is rewritten to combinatoire-num-rative

Proposal

When site.options.folders is on (or possibly with an additional option), ensure a one-to-one correspondence for folders and file names between the sources and the produced site.

Motivation:

  • Make it simpler for users and tooling to retrieve and edit the original source file.
  • Ease transition from Jupyter-Book by preserving the site layout, and thereby URL pointing to specific resources in the site.

Thanks in advance!

@nthiery nthiery added the enhancement New feature or request label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant