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

Describe relationship between file/logical path and publishing path #2487

Open
jmooring opened this issue Mar 14, 2024 · 2 comments
Open

Describe relationship between file/logical path and publishing path #2487

jmooring opened this issue Mar 14, 2024 · 2 comments

Comments

@jmooring
Copy link
Member

Describe the relationship between the content’s file path (or logical path when the content is not backed by a file) and the published path. For example (this needs verification, additional steps, etc.):

  1. Convert to lower case
  2. Replace spaces with hyphens
  3. Remove punctuation excluding hyphens
  4. Note what happens when disablePathToLower and removePathAccents are true
  5. etc.

Include examples per the reference links below.

Pages to update:

References:

@jmichelgarcia
Copy link

Thank you @jmooring.

As per your comments, then it's all by design.

For content/en/docs/Concepts & Tutorials/_index.md

  • Convert to lower case: concepts & tutorials
  • Replace spaces with hyphens: concepts-&-tutorials
  • Remove punctuation excluding hyphens: concepts--tutorials

And for content/en/docs/Concepts (Tutorials)/_index.md

  • Convert to lower case: concepts (tutorials)
  • Replace spaces with hyphens: concepts-(tutorials)
  • Remove punctuation excluding hyphens: concepts-tutorials

Thank you for being patient and kind.

@jmooring
Copy link
Member Author

There's a bit more to it, I think, in that some punctuation is retained (tilde for example). Need to dig into it a bit more.

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

No branches or pull requests

2 participants