Skip to content

Multilanguage support #19

@einari

Description

@einari

Let's add support for snippets from multiple programming languages.

We want to do this by extending DocFx with this capability.

It should recognize the following syntax:

:::multilang title="Appending Events":::

When this is in a file, we will look for snippets in predefined folders with the same structure as where file is. Each of the folders representing the programming languages.

So for instance, we will have a Chronicle.TypeScript folder for all the documentation. In a sub folder called snippets in the hierarchy of the markdown hosting this, we'll then look for a file matching by convention appending-events.md. Based on the language this would be in the tab for that language. If the file is missing, the tab won't show.

We should keep current language as a state for the page, so that we retain the language while navigation. Ideally this state would be in local storage surviving visits

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions