-
Notifications
You must be signed in to change notification settings - Fork 75
Guide and principles
Rishabh Poddar edited this page Jul 6, 2021
·
5 revisions
- All questions about "how to do something". For example, how to embed the login widget in a page?
- Step by step guide on implementing SuperTokens for various frameworks.
- All questions about "what are / is something". For example, what are all the config options for the
init
function call?
- This allows you to replicate the contents of a
.md
file into another.md
file. It is used in cases where a page across recipes has exactly the same content. - To use this, add the following to the top of your
.md
file:Here we see that the contents of this docs will be copied from--- id: functions title: Functions --- <!-- COPY DOCS --> <!-- ./website/docs/usage/override/functions.md --> # Page title...
/website/docs/usage/override/functions.md
. Specifically, everything below the<!-- ./website/docs/usage/override/functions.md -->
line. - When editing a
.md
file, please be sure to check if it has the<!-- COPY DOCS -->
directive on top. If it does, then go and change that file instead.
- The file
docs/static/scripts/commonDocsBuilder.js
, is loaded on each page load and can run any JS and modify the page content. - After running all the JS, it shows the page content so that there is no flicker.
- When linking to within the same docusaurus project, use relative path, else, use absolute path