macos-defaults/build
2022-08-18 19:34:34 +02:00
..
__mocks__ 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
__snapshots__ 🐛 Fix quotes escaping in example titles 2022-08-18 19:34:34 +02:00
media 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
templates 🐛 Fix quotes escaping in example titles 2022-08-18 19:34:34 +02:00
.node-version 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
build.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
handlebars-helpers.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
netlify.toml 👷 Build if .node-version is updated 2022-08-18 11:08:08 +02:00
package.json ⬆️ Update Netlify plugins 2022-08-18 11:08:08 +02:00
readme.md 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-categories.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-categories.test.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-config.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-config.test.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-homepage.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-homepage.test.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-pages.js 🔥 Keep the production build folder only 2022-08-18 11:08:08 +02:00
write-pages.test.js 🐛 Fix quotes escaping in example titles 2022-08-18 19:34:34 +02:00
yarn.lock ⬆️ Update Netlify plugins 2022-08-18 11:08:08 +02:00

Production Build

macos-defaults.com build status

How does it work?

Here is the built website architecture:

  • .vuepress/config.yml
    • Contains the whole VuePress configuration from title to sidebar config
  • readme.md
    • The main page content

All the other pages (including translations) are markdown files that are carefully put under their folder (e.g. screenshot/disable-shadow.md). Assets are stored at the same level.

There is a second build phase where VuePress generates the static website.

Try locally

🏗 Install

yarn install

🚀 Usage

This will build the defaults.yml file and run a VuePress server on http://localhost:8080/. Sources of the website are available in the docs folder.

yarn start

🚧 Run unit tests

yarn test