Giter Club home page Giter Club logo

ministryofjustice.test-doc-site's Introduction

Template Documentation Site

Use this template to create a documentation website using the gov.uk tech-docs-template.

To create a site

  1. Create a repository from this template

  2. Make the "normal" changes:

    • Edit the copy of this README.md file to document your project
    • Grant permissions to the appropriate MoJ teams
    • Setup branch protection
  3. Change your repository settings to publish the /docs folder in the gh-pages branch via github pages. You'll have to create the gh-pages branch first, or you can just defer this step until after your first push/merge to main, and let the github action create the branch for you.

  4. Edit the .github/workflows/publish.yml file to set the correct docpath to your site. This is generally /[repo name] so if your repository is ministryofjustice/awesome-docs, you need to set the ROOT_DOCPATH in that file to /awesome-docs.

  5. Edit config/tech-docs.yml to set appropriate values for your site

You can now manage your content by editing *.html.md.erb files below source/documentation

For more details, see the gov.uk tech-docs-template documentation.

Preview

You can run make preview to start a local instance of your site at http://localhost:4567, so that you can view changes while editing your content files.

Publishing

Provided you have updated the .github/workflows/publish.yml file as directed, any changes you push/merge into the main branch should be published automatically.

The publishing process creates files in /docs and pushes them to the gh-pages branch to publish them. You should not edit any files in that folder, because your changes will be lost the next time the site is published.

warning: URI.unescape is obsolete

You can ignore any messages like this that you see. It's a deprecation warning because a gem has not been updated wrt. the (currently) latest version of ruby.

ministryofjustice.test-doc-site's People

Contributors

digitalronin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.