GithubHelp home page GithubHelp logo

ministryofjustice / mkdocs-tech-docs-template Goto Github PK

View Code? Open in Web Editor NEW
8.0 96.0 4.0 1.01 MB

Build flexible technical documentation with a GOV.UK style using MkDocs

Home Page: https://ministryofjustice.github.io/mkdocs-tech-docs-template/

Python 0.39% CSS 74.77% HTML 24.85%
documentation-tool uk-gov-data-science govuk govuk-design-system mkdocs-material moj-data-engineering

mkdocs-tech-docs-template's Introduction

This project will not be developed further. See govuk-eleventy-plugin for an alternative.

MkDocs Tech Docs Template

Build flexible technical documentation with a GOV.UK style using Material for MkDocs.

Visit the documentation website for more details.

This template is under construction. It has not passed an accessibility audit yet, so we currently do not recommend using it.

mkdocs-tech-docs-template's People

Contributors

camlamb avatar gwionap avatar hrahim-moj avatar michalc avatar soumayamauthoormoj avatar

Stargazers

 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  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

mkdocs-tech-docs-template's Issues

Accessibility: Fix View Source and Edit Page icons

The attached icons do not meet accessibility standards due to their low colour contrast. A ratio of at least 3:! is needed according to the Web Content Accessibility Guidelines

Preferably, we should change the icons to text that simply says 'View Source' and 'Edit This Page'. We could also include this text with the icons but in that case we should still change the colour of them.

Screenshot 2023-06-05 at 13 33 37

Accessibility: Dark mode headings

As a user of dark mode
I want the colour of headings to not be black when dark mode is on
So that I can see page and section headings while in dark mode.

User access removed, access is now via a team

Hi there

The user benmillar-cgi either had direct member access to the repository or had direct member access and access via a team.

Access is now only via a team.

If the user was already in a team, then their direct access to the repository has been removed.

If the user was not in a team, then the user will have been added to an automated generated team named repository-name-<read|write|maintain|admin>-team and their direct access to the repository has been removed.

The list of Org teams can be found at https://github.com/orgs/ministryofjustice/teams or https://github.com/orgs/moj-analytical-services/teams.

The user will have the same level of access to the repository via the team.

The first user added to a team is made a team maintainer, this enables that user to manage the users within the team.

Users with admin access are added to the admin team as a team maintainer.

If you have any questions, please contact us in #ask-operations-engineering on Slack.

This issue can be closed.

Spacing around active items if using sections, but not tabs

There seems to be a slightly strange (to my eye) spacing, around the active items in the left hand navigation menu. This can be seen here next to the "Getting started" item, where the vertical blue bar is very close to the text:

image

Adding this CSS seems to sort it:

.md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item--active {
    margin-left:  0;
    padding-left: 3px;
}

I've done this at https://github.com/uktrade/stream-zip/blob/e09ac51c3f21938d2d9b18478892d4f8caaac47e/docs/assets/dit-extra.css, where its effect can currently be seen at https://stream-zip.docs.data.trade.gov.uk/getting-started/ and in the below screenshot

image

After a bit of trial and error, I think it's due to using navigation.sections, but not navigation.tabs as features in mkdocs.yml, as is done in https://github.com/uktrade/stream-zip/blob/5cf1edec090f8abb912f05df610bef0aaecae534/mkdocs.yml

Accessibility: Fix truncated text

As a user of a 13-inch laptop screen
I want to be able to read headings in full
So that I know what they say

At 400% zoom on a 13-inch screen, page headings become truncated (see attached). If possible, we should wrap the text instead or find an alternative way to avoid truncating.

Screenshot 2023-06-05 at 13 38 32

Accessibility: Revise/remove image alt-text

Change the aria label for the gov logo (attached) so that instead of 'MkDocs Tech Docs Template' it just says 'logo'

Also remove the alt-text from homepage image of laptops (also attached) - it currently says ‘services’ but since it is cosmetic it shouldn’t have any alt-text.

Screenshot 2023-06-05 at 13 41 05 Screenshot 2023-06-05 at 13 41 20

Consider integrating `termynal`

tech-docs quite often have code snippets embedded. It can be useful to render this as an animated terminal.

termynal is a nice lightweight component that can provide this whilst failing gracefully for anyone with javascript disabled.

An example of it embedded within material-for-mkdocs is viewable throughout the typer-cli docs.

Accessibility: homepage headings

As a user of the MkDocs TDT
I want to reformat the homepage to use headings
So that screen readers will properly recognise them.

In the attached screenshot, 'Build flexible technical documentation with a GOV.UK style', 'Restrictions' and 'Prototype' should all be headings rather than admonitions.

Screenshot 2023-06-05 at 13 31 38

Accessibility: Make dark mode work with tabbing

Currently, tabbing and using enter or spacebar does not work with the dark mode setting as it uses radio buttons (using arrow button does work sometimes, however). If we could switch the setting from radio buttons to a toggle button, for example, that should fix it.

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.