Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Add Mermaid support to the Corso documentation platform (#64)
Browse files Browse the repository at this point in the history
* Add MDX and Mermaid
* Configure Docusaurus for Mermaid
  • Loading branch information
ntolia authored May 20, 2022
1 parent df23d22 commit 2564b32
Show file tree
Hide file tree
Showing 5 changed files with 14,861 additions and 9,042 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ check:
docker run --rm \
-v ${PWD}:/usr/src/docs alcion/docs vale docs README.md
docker run --rm \
-v ${PWD}:/usr/src/docs alcion/docs markdownlint '**/*.md' --ignore styles/ --ignore src/
-v ${PWD}:/usr/src/docs alcion/docs markdownlint '**/*.md' --ignore styles/ --ignore src/ --ignore node_modules/

shell:
docker run --rm -it \
Expand Down
5 changes: 5 additions & 0 deletions docs/docs/concepts/corso-repository-and-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ sidebar_position: 1
# Repositories and configuration

How to configure Corso:

```mermaid
graph TD;
Corso-->S3;
```
7 changes: 3 additions & 4 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ const config = {
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
remarkPlugins: [require('mdx-mermaid')],
editUrl:
'https://github.com/alcionai/corso/tree/main/docs',
},
Expand Down
Loading

0 comments on commit 2564b32

Please sign in to comment.