Skip to content

Commit

Permalink
Enable asciidoc for more directories
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Dec 26, 2024
1 parent 4c01af1 commit c155353
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit c155353

Please sign in to comment.