The documentation in this repository site is meant to provide specifications and implementation details that will be useful to third party developers or contributors to the main repository.
You're going to need:
- NPM
- Oracle JDK (For generating the pdf, deployment needs this)
- Fork this repository on Github
- Clone your forked repository (not our original one) to your hard drive with
git clone https://github.com/YOURUSERNAME/chain-docs.git
cd chain-docs
- Initialize and start chain-docs.
npm install
npm run docs:dev
You can now see the docs at http://localhost:8080.
- Create a markdown file under
/docs/getting-started/
- Open
/docs/.vuepress/config.js
- Add the file name to
sidebar
and theordering
undervuepress-plugin-export
in plugins
module.exports = {
...,
themeConfig: {
...,
sidebar: {
'/getting-started/': [
'',
...,
+ '[Add_Your_New_File_Name_Here]'
...
]
}
},
...,
plugins: [
['vuepress-plugin-export',
{
sorter: function(a,b){
var ordering = {
'Home': 0,
...,
+ '[Add_Your_New_File_Name_Here]': [Add_The_Number_You_Want_The_Page_Be_Ordered]
...,
};
...
}
}
]
]
}
Go to chain-docs/docs
, then run:
vuepress export
a PDF version of the site will be generated under the /docs
path.
- Make sure you're working on a fork in your own account, not our original respository:
git remote show origin
- Commit your changes:
git commit -a -m "YOUR MESSAGE"
- Push the changes to GitHub:
git push
- Run
./deploy.sh
You should see your updates on http://yourusermame.github.io/chain-docs.