commit | 6271aad16a0bad60cd4fe5914c0c6529d03ce23a | [log] [tgz] |
---|---|---|
author | FeynmanDNA <26617036+FeynmanDNA@users.noreply.github.com> | Mon Jan 13 21:28:33 2020 +0800 |
committer | FeynmanDNA <26617036+FeynmanDNA@users.noreply.github.com> | Mon Jan 13 21:28:33 2020 +0800 |
tree | 2385beabc019237cd1732b2c857dce2193f9b221 | |
parent | cac4c5e92bc781296adc7d0af30ed437baeb8518 [diff] |
[site] fix node script deleting yarn lock
This website was created with Docusaurus.
You need at least node
and yarn
to get started with setting up a local development environment.
yarn install
.# Install dependencies $ yarn install
yarn start
in the website directory.# Start the site $ yarn run start:website
All the docs are located in the SINGA_ROOT/docs-site/docs/
folder.
documentation for older versions of Apache SINGA, which you can edit in website/versioned_docs
All the news are located in the SINGA_ROOT/docs-site/website/blog/
folder.
refer to this page for writing this README: https://github.com/apache/pulsar/tree/master/site2
Static assets used in documents and blog/news should go into docs/assets
and website/blog/assets
Edit docs by navigating to docs/
and editing the corresponding document:
docs/doc-to-be-edited.md
--- id: page-needs-edit title: This Doc Needs To Be Edited --- Edit me...
For more information about docs, click here
Edit blog posts by navigating to website/blog
and editing the corresponding post:
website/blog/post-to-be-edited.md
--- id: post-needs-edit title: This Blog Post Needs To Be Edited --- Edit me...
For more information about blog posts, click here
/docs
, example docs/newly-created-doc.md
:--- id: newly-created-doc title: This Doc Needs To Be Edited --- My new content here..
website/sidebar.json
:// Add newly-created-doc to the Getting Started category of docs { "docs": { "Getting Started": [ "quick-start", "newly-created-doc" // new doc here ], ... }, ... }
For more information about adding new docs, click here
website/siteConfig.js
:website/siteConfig.js
headerLinks: [ ... { blog: true, label: 'Blog' }, ... ]
YYYY-MM-DD-My-Blog-Post-Title.md
in website/blog
:website/blog/2018-05-21-New-Blog-Post.md
--- author: Frank Li authorURL: https://twitter.com/foobarbaz authorFBID: 503283835 title: New Blog Post --- Lorem Ipsum...
For more information about blog posts, click here
website/siteConfig.js
:website/siteConfig.js
{ headerLinks: [ ... /* you can add docs */ { doc: 'my-examples', label: 'Examples' }, /* you can add custom pages */ { page: 'help', label: 'Help' }, /* you can add external links */ { href: 'https://github.com/facebook/docusaurus', label: 'GitHub' }, ... ], ... }
For more information about the navigation bar, click here
website/pages/en
:website/siteConfig.js
to add to the headerLinks
element:website/siteConfig.js
{ headerLinks: [ ... { page: 'my-new-custom-page', label: 'My New Custom Page' }, ... ], ... }
For more information about custom pages, click here.
cd to /website/build/singa/ to serve