Jef 20d28e80a5 Initial community commit | 2 месяцев назад | |
---|---|---|
.. | ||
blog | 2 месяцев назад | |
community | 2 месяцев назад | |
docs | 2 месяцев назад | |
src | 2 месяцев назад | |
static | 2 месяцев назад | |
.gitignore | 2 месяцев назад | |
README.md | 2 месяцев назад | |
babel.config.js | 2 месяцев назад | |
docusaurus.config.js | 2 месяцев назад | |
package.json | 2 месяцев назад | |
sidebars-community.js | 2 месяцев назад | |
sidebars.js | 2 месяцев назад |
Premake website is built using Docusaurus 2, a modern static website generator. Search functionality is provided for free by Algolia DocSearch.
All docs pages can be found in the docs/
folder.
Editing our documentation website is very simple. You don't have to build a whole website for this. All pages are stored in Markdown files, so in order to add a new entry:
docs/
folder. Follow naming conventions there.sidebars.js
. Make sure you've kept alphabetical order among category items.Always reference another documentation page like this:
[some text](Case-Sensitive-Filename.md)
and never like this:
[some text](some-markdown-file)
[some text](/docs/some-markdown-file)
[some text](https://premake.github.io/docs/some-markdown-file)
Use existing files in documentation as examples.
npm install
npm start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
To see a list of broken links (mistakes happen!), be sure to run npm run build
before submitting updates. Your changes will be rejected if they contain broken links.
npm run-script build
This command generates static content into the build
directory and can be served using any static contents hosting service.
website/**
will trigger website build (to make sure that no errors like broken links were introduced)website/**
will trigger website deployment. It means that the website will be built and pushed to the master branch of premake.github.io.Target repo for deployment is specified in docusaurus.config.js
.
organizationName
is a GitHub account name: github.com/premake/premake.github.ioprojectName
is a target repository: github.com/premake/premake.github.iodocusaurus deploy
command is used to automatically build and push static files into premake.github.io repo.
Deployments are authenticated by a key pair. The private key is hosted in premake-core
in Settings > Secrets. The public key is host in premake.github.io
in Settings > Deploy Keys.