Skip to content

zumasys/docs

Repository files navigation

Zumasys Documentation

Azure Static Web Apps CI/CD

This is a VuePress documentation application that leverages GitHub as the repository of documentation. The repository is currently hosted in the Zumasys GitHub and the app is available at Zumasys Docs. The application itself is built and deployed as a static site hosted on Azure Storage via a GitHub action.

Directory structure

├── site
│   ├── .vuepress
│   │   ├── components
│   │   ├── dist
│   │   ├── public
│   │   ├── styles
│   │   │   ├── index.styl
│   │   │   └── palette.styl
│   │   ├── theme
│   │   │   ├── components
│   │   │   ├── layouts
│   │   │   └── index.js
│   │   ├── config.js
│   │   ├── enhanceApp.js
│   ├── pos-connect (POS Connect docs)
│   ├── rover (Rover docs)
│   ├── smartsuite (SmartSuite docs)
│   ├── README.md (The home page of the docs)
│   └── package.json
└── README.md (You are here!)

Development Steps

To run the application locally:

You will need to have Node.js & npm installed. You'll also need Git.

  1. git clone https://github.com/zumasys/docs.git

  2. cd docs (or whatever name you used for your git clone)

  3. cd site

  4. npm i (Not necessary on subsequent builds)

  5. To enable all features you'll need to set up environment variables. Create .env (for production) and .env.development (for development) files in the site folder. Use the .env.skel file as your baseline (for both production and development).

    • Optionally, if you want the Vssue plugin to work you'll have to populate the following .env variables in the file from step 5.

    cd site && code .env

    # Environment Variables
    VUE_APP_GITHUB_CLIENT_ID=MyClientKey
    VUE_APP_GITHUB_CLIENT_SECRET=MySecretKey
  6. npm run dev

  7. When compilation completes you should see the following message

    success [12:25:41] Build 59cc58 finished in 75022 ms!
    VuePress dev server listening at http://localhost:8080/

  8. Open localhost:8080 in your browser.

Todo List

  • Migrate to VuePress 2
  • Review Plugins (related to migration)
  • Check out more on awesome-vuepress
  • Update 404 page to have featured content

About

Zumasys Product Documentation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 33