This repository contains the sources of https://docs.metroline.io. Feel free to improve it !
- Install dependencies
npm run install
- Run
cp .env.example .env
- Start
npm start
You set metadata at the top of your Markdown files. It's not mandatory, but allows you to control SEO data.
---
title: 'page title'
excerpt: 'some description'
isHomePage: true | false
---
Code blocks
Blank lines are important.
<div class="code-group" data-props='{ "lineNumbers": ["true"] }'>
\`\`\`yaml
#Your code here
\`\`\`
</div>
Info/Warning/Danger
Blank lines are important.
<div class="blockquote" data-props='{ "mod": "info" }'>
Your content here.
</div>
<div class="blockquote" data-props='{ "mod": "warning" }'>
Your content here.
</div>
<div class="blockquote" data-props='{ "mod": "danger" }'>
Your content here.
</div>
Ackee is a privacy-friendly, self-hosted tracking tool. To use it:
GATSBY_ACKEE_SERVER=http://localhost:3000
GATSBY_ACKEE_DOMAIN_ID=...
if you've changed ACKEE_TRACKER
in your Ackee server:
GATSBY_ACKEE_TRACKER=custom-name
To disable detailed tracking:
GATSBY_ACKEE_DETAILED=false
To also send tracking info for localhost:
GATSBY_ACKEE_IGNORE_LOCALHOST=false
You can find this info in your Algolia account under API keys.
ALGOLIA_ADMIN_KEY=
GATSBY_ALGOLIA_APP_ID=
GATSBY_ALGOLIA_INDEX_NAME=
GATSBY_ALGOLIA_SEARCH_ONLY_KEY=