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

Enable asciidoc for more directories #3315

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/asciidoc-pages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Most static pages on this site are written as [asciidoc](https://asciidoctor.org/docs/what-is-asciidoc/) pages. These are similar to Markdown in format but give us more flexibility.

The directory layout of these files is very important as it determines the path to the file in the site. For example a documnet in `/foo/bar/index.adoc` will be served up as `/foo/bar` on the site. You could also store the same document as `/foo/bar.adoc` but we generally discourage this as we need a parent folder to store localised versions of the page.
The directory layout of these files is very important as it determines the path to the file in the site. For example a document in `/foo/bar/index.adoc` will be served up as `/foo/bar` on the site. You could also store the same document as `/foo/bar.adoc` but we generally discourage this as we need a parent folder to store localised versions of the page.

```tree
.
Expand Down
8 changes: 4 additions & 4 deletions gatsby-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ const config: GatsbyConfig = {
},
pages: [
{
matchPath: '/:lang?/docs/:uid',
matchPath: '/:lang?/about/',
getLanguageFromPath: true
},
{
matchPath: '/:lang?/temurin/commercial-support/',
matchPath: '/:lang?/docs/:uid',
getLanguageFromPath: true
},
{
matchPath: '/:lang?/about/',
matchPath: '/:lang?/installation/:uid',
getLanguageFromPath: true
},
{
matchPath: '/:lang?/installation/:uid',
matchPath: '/:lang?/temurin/:uid',
getLanguageFromPath: true
}
]
Expand Down
Loading