Skip to content
/ docs Public
forked from CoderBotOrg/docs

User manual, assembly instructions, guides and development documentation for CoderBot.

License

Notifications You must be signed in to change notification settings

N0rthw1nd/docs

 
 

Repository files navigation

docs

This is the CoderBot documentation repository: a Vue.js application using VuePress (1.x alpha).

The development is done on the dev branch, since master is hosting the production build, served by GitHub pages (automatically deployed by an npm script, see package.json).

Image assets are hosted using Git LFS. Before cloning this repository, be sure you have it installed.

git clone https://github.com/CoderBotOrg/docs.git
npm install

Deploy

Start a development server with hot reload on localhost:8080/docs/:

npx vuepress dev pages/

Production build (destionation: pages/.vuepress/dist):

npx vuepress build pages/

Build and deploy on GitHub Pages:

npm run deploy

Development

.
├── pages
│   ├── .vuepress (Optional)
│   │   ├── components (Optional)
│   │   ├── theme (Optional)
│   │   │   └── Layout.vue
│   │   ├── public (Optional)
│   │   ├── styles (Optional)
│   │   │   ├── index.styl
│   │   │   └── palette.styl
│   │   ├── templates (Optional, Danger Zone)
│   │   │   ├── dev.html
│   │   │   └── ssr.html
│   │   ├── config.js (Optional)
│   │   └── enhanceApp.js (Optional)
│   │ 
│   ├── README.md
│   ├── manual
│   │   └── README.md
│   └── anotherpage.md
│ 
└── package.json
  • pages/.vuepress: It is used to store global configuration, components, static resources, etc.
  • pages/.vuepress/components: The Vue components in this directory will be automatically registered as global components.
  • pages/.vuepress/theme: Used to store local theme.
  • pages/.vuepress/styles: Stores style related files.
  • pages/.vuepress/styles/index.styl: Automatically applied global style files, generated at the ending of the CSS file, have a higher priority than the default style.
  • pages/.vuepress/styles/palette.styl: The palette is used to override the default color constants and to set the color constants of Stylus.
  • pages/.vuepress/public: Static resource directory.
  • pages/.vuepress/templates: Store HTML template files.
  • pages/.vuepress/templates/dev.html: HTML template file for development environment.
  • pages/.vuepress/templates/ssr.html: Vue SSR based HTML template file in the built time.
  • pages/.vuepress/config.js: Entry file of configuration, can also be yml or toml.
  • pages/.vuepress/enhanceApp.js: App level enhancement.

Image assets using the $baseURL helper

<img :src="$withBase('/foo.png')" alt="foo">

License

The codebase is available under the terms of GNU General Public License, version 3.

The VuePress theme we use is based on the default one, released under the MIT License.

If not differently specified, blog posts, pages, documentation and contents (Text and markdown files, assets) are licensed under the Creative Commons Attribution Share Alike 4.0 International license (CC-BY-SA-4.0).

About

User manual, assembly instructions, guides and development documentation for CoderBot.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 69.5%
  • CSS 17.1%
  • JavaScript 13.4%