Skip to content

Rename content files to their desired name #941

Draft
MuhammadAashirAslam wants to merge 1 commit into
precice:masterfrom
MuhammadAashirAslam:rename-content-files
Draft

Rename content files to their desired name #941
MuhammadAashirAslam wants to merge 1 commit into
precice:masterfrom
MuhammadAashirAslam:rename-content-files

Conversation

@MuhammadAashirAslam

@MuhammadAashirAslam MuhammadAashirAslam commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Rename content files to their desired name

Removes the redundant path-echoing prefixes from native content/ filenames now
that the folder hierarchy (from #580) provides the context, e.g.:

  • content/docs/configuration/advanced/configuration-action.md.../action.md
  • content/docs/installation/building-from-source/installation-source-configuration.md.../configuration.md

Section overview/landing pages become overview.md within their folder
(e.g. tutorials.mdtutorials/overview.md, as suggested in the issue).

URLs are unchanged

Every page keeps its existing permalink: front matter untouched, so Jekyll
publishes the exact same *.html URLs as before. bundle exec jekyll build
passes and the generated _site/ URL set is identical. A few internal links
that referenced old source filenames were updated to point at the page permalinks.

Exception: two porting guides keep their original names

content/docs/couple-your-code/porting/couple-your-code-porting-v1-2.md and
couple-your-code-porting-v2-3.md are intentionally not renamed. These
migration guides legitimately contain old preCICE API names, and the
check-old-precice pre-commit hook skips them by matching "porting" in the
filename. Renaming them (e.g. to v1-2.md) would drop that match and make
the hook fail. Rather than weakening the hook, the two files are left as-is.
(If preferred, the hook's fileFilter could match the path/directory instead of
just the filename in a follow-up.)

Scope

Native content/ only. Imported adapter/tutorial content (imported/**) is
handled separately via module mounts in #590.

Closes #589 (and #538).

Strip redundant path-echoing prefixes from native content/ filenames now
that the folder hierarchy provides the context (e.g. configuration-action.md
-> configuration/advanced/action.md). Section overview pages become
overview.md within their folder.

Permalinks are intentionally left untouched, so every published URL is
unchanged and the Jekyll build stays green. Also fixes a few internal links
that referenced old source filenames to use the page permalinks.

The two porting guides (couple-your-code-porting-v1-2.md and
couple-your-code-porting-v2-3.md) are intentionally kept at their original
names. They legitimately contain old preCICE API names, and the
check-old-precice pre-commit hook skips them by matching "porting" in the
filename. Renaming them would drop that match and fail the hook, so they are
left as-is rather than weakening the hook.

Scope: native content/ only. Imported content (imported/**) is handled
separately via precice#590 mounts.
@MuhammadAashirAslam MuhammadAashirAslam changed the title Rename content files to their desired name (#589) Rename content files to their desired name Jun 23, 2026
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.

Rename content files to their desired name

1 participant