-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: setup Nextra * feat(docs): ERdoc syntax highlighting in markdown! * docs: intro, entity, weak entities docs * docs: relationship and aggregation syntax docs * fix(Header): Open links in new tab; website title * spelling * fix(docs): don't use SVG images. Spelling. With SVG images, the text of some nodes overflowed when viewing the page in my laptop
- Loading branch information
Showing
29 changed files
with
7,527 additions
and
2,096 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from "react"; | ||
|
||
const DocsConfig = { | ||
project: { | ||
link: "https://github.com/matias-lg/er", | ||
}, | ||
docsRepositoryBase: "https://github.com/matias-lg/er/tree/main", | ||
logo: <span style={{ fontWeight: 800 }}>ERdoc Playground</span>, | ||
useNextSeoProps: () => ({ | ||
titleTemplate: "%s", | ||
}), | ||
footer: { | ||
text: ( | ||
<span> | ||
MIT {new Date().getFullYear()} ©{" "} | ||
<a href="https://github.com/matias-lg/er" target="_blank"> | ||
ERdoc Playground | ||
</a> | ||
. | ||
</span> | ||
), | ||
}, | ||
}; | ||
|
||
export default DocsConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
module.exports = { | ||
const { getHighlighter, BUNDLED_LANGUAGES } = require("shiki"); | ||
|
||
const withNextra = require("nextra")({ | ||
theme: "nextra-theme-docs", | ||
themeConfig: "./docs.config.tsx", | ||
mdxOptions: { | ||
rehypePrettyCodeOptions: { | ||
getHighlighter: (options) => | ||
getHighlighter({ | ||
...options, | ||
langs: [ | ||
...BUNDLED_LANGUAGES, | ||
// setup syntax highlighting for erdoc code blocks | ||
{ | ||
id: "erdoc", | ||
scopeName: "source.erdoc", | ||
aliases: ["erdoc"], | ||
path: "../../public/erdoc_grammar.tmLanguage.json", | ||
}, | ||
], | ||
}), | ||
}, | ||
}, | ||
}); | ||
|
||
module.exports = withNextra({ | ||
output: "standalone", | ||
}; | ||
}); |
Oops, something went wrong.