This repository contains the documentation and guides for Plio. The docs can be found here. This is built using VuePress.
- Clone the repo and run
npm install. - Run
npm run docs:devto serve locally.
- Run
npm run docs:buildto build the app's static files which can be deployed as a static web app. - The files reside in
docs/.vuepress/dist.
- Run
yarn deploy-stagingoryarn deployto build the static files and push the files to the S3 bucket.
- To add a new section to the docs, create a folder with the appropriate name inside
./docs. - Add a
README.mdinside the created folder. Write your content there. - Add a path to the
sidebararray insidethemeConfigin thedocs/.vuepress/config.jsfile. - For example, if the added section's name is
new-section, the path that should be added to thesidebararray will be/new-section/
- There are two ways. If the content to be added is smaller in size/length, you can directly add it into the parent
.mdfile. - Otherwise, if you want to keep the new subsection separate, create an
.mdfile with the name of the subsection. Let's call itchild.md. - Now, to render it inside a parent file, let's say
parent.md, you'll need to include it inside theparent.md. Append this line in yourparent.mdfile.
!!!include(./docs/some-section-folder/child.md)!!!