Coder Social home page Coder Social logo

tdt-documentation's Introduction

Tech Docs Template Documentation

This repository was previously used to generate the documentation website for the Tech Docs Template. Following the decommissioning of PaaS that site is no longer live. The documentation remains available in this git repository, although it is no longer maintained.

Publishing changes

GitHub Actions automatically publishes changes merged into the main branch of this repository.

Code of conduct

Refer to the alphagov code of conduct.

Licence

Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.

The documentation is ยฉ Crown copyright and available under the terms of the Open Government 3.0 licence.

tdt-documentation's People

Contributors

36degrees avatar chrisbashton avatar cmcnallygds avatar davidread avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar duncanjbrown avatar eoinshaughnessy avatar heathd avatar jonathanglassman avatar lfdebrux avatar m-green avatar nickcolley avatar pippaclarkgds avatar samuelhwilliams avatar tijmenb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tdt-documentation's Issues

Documentation project

it is possibly confusing using using the term 'documentation project' to refer to both an instance of the tech doc template and managing the content within it.

The content should be clear on the difference between these two distinct things.

Generate a sitemap.xml file automatically

What should change

Adds logic to create a sitemap.xml file automatically from the source files, respecting the noindex page data setting.

Identifying a user need

Search engine optimisation and navigation support for a sitemap for documentation sites.

Add documentation on how to add authentication to your documentation site

What should change

Add documentation on how to add authentication to your documentation site. There are several options that may work, depending on the use case.

Identifying a user need

The use case that prompted this is the data community tech docs needing some authentication to protect some official / sensitive data source information.

Current published tech docs

This table does not have a clear user need. Depending on the user need, it might be worth doing examples at point of use (e.g. GitHub pages) rather than as a separate table.

What is the user need? For current publishers - see others' implementation - worth writing in as examples at point of use rather than separate table?

Also, this is not an exhaustive list, yet it reads like one. Should instead link to a GitHub query.

https://github.com/alphagov/tdt-documentation/blob/master/source/publish_project/current/index.html.md.erb

OpenAPI specification file with header markdown errors on site load

If you use an OpenAPI specification file in a tech doc and use a markdown header in a 'description' field, it errors when the site loads.

Error:

TypeError: no implicit conversion of nil into String
        /usr/local/lib/ruby/gems/2.7.0/gems/govuk_tech_docs-2.3.0/lib/govuk_tech_docs/table_of_contents/heading.rb:16:in `+'
        /usr/local/lib/ruby/gems/2.7.0/gems/govuk_tech_docs-2.3.0/lib/govuk_tech_docs/table_of_contents/heading.rb:16:in `href'
        /usr/local/lib/ruby/gems/2.7.0/gems/govuk_tech_docs-2.3.0/lib/govuk_tech_docs/table_of_contents/heading_tree_renderer.rb:23:in `render_tree'
        /usr/local/lib/ruby/gems/2.7.0/gems/govuk_tech_docs-2.3.0/lib/govuk_tech_docs/table_of_contents/heading_tree_renderer.rb:31:in `block in render_tree'
...

Example OAS file:

openapi: 3.0.0
info:
  title: my title
  version: "1.0"
  description: "# My markdown heading"
paths:
  /my-path:
    get:
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: string

Note: If you remove the # prefix in the description value above the site load correctly.

Make this the canonical documentation site

We currently have the tech-docs-manual (live on github pages) and this site (tdt-documentation.london.cloudapps.digital).

It would be good to make this repo the single source of documentation, and archive the other one.

Todo

Configuration options `collapsible_nav` & `max_toc_heading_level` don't seem to work

What did you do? (steps to reproduce)

In my existing tech-docs project, I changed 'max_toc_heading_level' from 2 to 3, and 'collapsible_nav' from true to false.

I then stopped and started the middleman server.

What happened? (actual results)

In my development environment, the config changes seemed to have no effect at all - the sidebar nav. showed the same items, both expanded and collapsed, as before, and the sidebar items were still collapsible.

What should have happened? (expected results)

I should have seen more items in the left-hand navigation sidebar table of contents, and the top-level items should not have been collapsible.

Remove markdown section

Remove markdown section and link out to markdown documentation in keeping with GOV.UK proposition.

Keep the documented bug about the table issues

White gap left under footer, on short pages

I've noticed that on short pages the grey footer appears so high up that there is a white patch left below it.
Screenshot 2021-10-20 at 17 20 04
Maybe that's intentional, but I thought I'd query it, even though I'm no designer. I wonder if it looks better if the footer was moved to the bottom of the browser on these occasions.

My colleague added some CSS to achieve this on a fork: moj-analytical-services/tech-docs-gem@df52c27

Switch to a docker-based system for preview & build

The current instructions require people to install ruby and the gems before they can get started with tech docs.

IMO, a docker-based workflow would be more generally applicable (e.g. developers who have never used ruby are still fairly likely to know about docker, or to have it installed already).

The following files could be used as the basis of a preview & build workflow, without requiring users to have ruby installed locally:

https://github.com/ministryofjustice/cloud-platform-user-guide/blob/master/makefile
https://github.com/ministryofjustice/cloud-platform-user-guide/blob/master/Dockerfile

Support link doesn't go anywhere

The support link in the header navigation links to the documentation's homepage.
If there is no support, the link should rather be removed.

Broken links

These links are broken, I believe mostly since #97

From To Anchor Text
https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/not-expired-page.png
https://tdt-documentation.london.cloudapps.digital/create_project/single_page/ https://tdt-documentation.london.cloudapps.digital/create_project/single_page/create_new_project.html Create the content files
https://tdt-documentation.london.cloudapps.digital/publish_project/push_repo/ https://tdt-documentation.london.cloudapps.digital/create_new_project.html Create a new local documentation repo
https://tdt-documentation.london.cloudapps.digital//publish_project/push_repo/ https://tdt-documentation.london.cloudapps.digital/create_new_project.html Create a new local documentation repo
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/docs/frontmatter.md setting old_paths in the frontmatter
https://tdt-documentation.london.cloudapps.digital/create_project/multipage/ https://tdt-documentation.london.cloudapps.digital/create_project/multipage/search.html search feature
https://tdt-documentation.london.cloudapps.digital/create_project/single_page/ https://tdt-documentation.london.cloudapps.digital/create_project/single_page/single_page.html add a partial line
https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/last-reviewed-only.png
https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital/review_project/page-expiry/expired-page.png
https://tdt-documentation.london.cloudapps.digital/create_project/single_page/ https://tdt-documentation.london.cloudapps.digital/create_project/single_page/content.html Amend your content files
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital/amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital/frontmatter.html https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital//frontmatter.html https://tdt-documentation.london.cloudapps.digital/page-expiry.html documentation for page expiry
https://tdt-documentation.london.cloudapps.digital//create_project/single_page/ https://tdt-documentation.london.cloudapps.digital//create_project/single_page/single_page.html add a partial line
https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/ https://tdt-documentation.london.cloudapps.digital//amend_project/configuration/docs/frontmatter.md setting old_paths in the frontmatter
https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/last-reviewed-only.png
https://tdt-documentation.london.cloudapps.digital//create_project/single_page/ https://tdt-documentation.london.cloudapps.digital//create_project/single_page/content.html Amend your content files
https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/expired-page.png
https://tdt-documentation.london.cloudapps.digital//create_project/single_page/ https://tdt-documentation.london.cloudapps.digital//create_project/single_page/create_new_project.html Create the content files
https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/ https://tdt-documentation.london.cloudapps.digital//review_project/page-expiry/not-expired-page.png
https://tdt-documentation.london.cloudapps.digital//create_project/multipage/ https://tdt-documentation.london.cloudapps.digital//create_project/multipage/search.html search feature

Documentation hosting in GOV.UK PaaS

What should change

The documentation should be hosted somewhere other than GOV.UK PaaS, on a domain other than london.cloudapps.digital.

Identifying a user need

GOV.UK PaaS is being decommissioned imminently, at which point the current documentation website will go offline. For users who need to refer to the documentation beyond the PaaS switch-off setting up hosting elsewhere will meet that need.

Correct Ruby install guidance

What should change

The Get started page says users should install the most recent stable release of Ruby. But the TDT has only been tested up to 2.7.3, so users should install that instead.

Identifying a user need

We've seen people get errors when they try to install the TDT using later versions of Ruby.

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.