项目作者: DFE-Digital

项目描述 :
BAT tech team guide
高级语言: Ruby
项目地址: git://github.com/DFE-Digital/bat-tech-guide.git
创建时间: 2021-01-04T15:02:41Z
项目社区:https://github.com/DFE-Digital/bat-tech-guide

开源协议:

下载


Teacher Services tech docs

This is the repo for the Teacher Services tech docs.

Install build dependencies with ASDF

The required versions of build tools are defined in .tool-versions. These can be automatically installed with asdf-vm, see their installation instructions.

Install the plugin specified in .tool-versions

  1. asdf plugin add ruby
  2. asdf install

(We don’t mandate asdf, you can use other tools if you prefer.)

Developing on this project

Copy .env.example to .env and populate a GitHub token with read access to repos.

To preview your new website locally, navigate to your project folder and run:

  1. bundle exec middleman server

👉 See the generated website on http://localhost:4567 in your browser. Any content changes you make to your website will be updated in real time.

To shut down the Middleman instance running on your machine, use ctrl+C.

If you make changes to the config/tech-docs.yml configuration file, you need to restart Middleman to see the changes.

Build

To build the HTML pages from content in your source folder, run:

  1. bundle exec middleman build

Every time you run this command, the build folder gets generated from scratch. This means any changes to the build folder that are not part of the build command will get overwritten.

Deployment

The site is deployed automatically to the AKS production cluster whenever main branch is updated.

Troubleshooting

Run bundle update to make sure you’re using the most recent Ruby gem versions.

Run bundle exec middleman build --verbose to get detailed error messages to help with finding the problem.

Licence

Unless stated otherwise, the codebase is released under the MIT License. The documentation is © Crown copyright and available under the terms of the [Open Government 3.0][ogl] licence.