GithubHelp home page GithubHelp logo

alphagov / manuals-frontend Goto Github PK

View Code? Open in Web Editor NEW
6.0 65.0 8.0 5.22 MB

Serves manuals on GOV.UK

Home Page: https://docs.publishing.service.gov.uk/apps/manuals-frontend.html

License: MIT License

Ruby 74.42% JavaScript 0.83% HTML 16.27% Shell 0.55% Dockerfile 1.39% SCSS 6.48% Procfile 0.07%
govuk-publishing-frontend govuk container

manuals-frontend's Introduction

Manuals Frontend is retired and all manuals are now being rendered by Government Frontend

Manuals Frontend

Front-end app for the manuals format on GOV.UK

Nomenclature

  • Manuals โ€“ documents published using Manuals Publisher.
  • HMRC Manuals โ€“ Manuals published by HMRC and populated via HMRC Manuals API.
  • Sections - individual sub-pages of a Manual or HMRC Manual.

Live examples

Technical documentation

This is a Ruby on Rails app, and should follow our Rails app conventions.

You can use the GOV.UK Docker environment or the local startup.sh script to run the app. Read the guidance on local frontend development to find out more about each approach, before you get started.

If you are using GOV.UK Docker, remember to combine it with the commands that follow. See the GOV.UK Docker usage instructions for examples.

Running the tests

bundle exec rake

License

MIT License

manuals-frontend's People

Contributors

alex-ju avatar andysellick avatar barrucadu avatar benilovj avatar benthorner avatar brucebolt avatar carvil avatar cbaines avatar chao-xian avatar chrisbashton avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar edds avatar edwardkerry avatar evilstreak avatar h-lame avatar injms avatar jamiecobbett avatar kevindew avatar kr8n3r avatar maxgds avatar murilodalri avatar owenatgov avatar sihugh avatar steventux avatar suzannehamilton avatar thomasleese avatar tijmenb avatar tommyp avatar

Stargazers

 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

manuals-frontend's Issues

Manuals Flash of Original Content

Issue found while visiting the Scottish Government's Device Lab

Seen at https://www.gov.uk/hmrc-internal-manuals/employment-income-manual/updates

https://drive.google.com/file/d/0B-GzTJBVVSNzNWpqd1F4Z0JmWkE/view
https://drive.google.com/file/d/0B-GzTJBVVSNzQ1RMM29uUExmY00/view
https://drive.google.com/file/d/0B-GzTJBVVSNzUjR0RXpiVXhQWDA/view

(Sorry about the laughing - apparently I'm more of a nerd than I thought haha)

You can reproduce this by throttling via the dev tools

https://youtu.be/SJUUPog11VE

screen shot 2016-11-21 at 22 34 20
screen shot 2016-11-21 at 22 34 13

Add width wrapper for no-js

If the JS hasn't loaded then the content width is 100%, it should have a width restricting wrapper div that is then removed when the JS loads and loads the width in the proper places.

Every page has the manual title as the h1 and title

As a user
I want the tab or window title in my browser to tell me which part of a manual it is
So that I can open multiple tabs to look at different parts of a manual

As a user using a screenreader
I want the page to have a specific title and heading
So that I can tell what I'm reading before reading it

Section and Updates pages should have an h1 and title tag specific to the page. Currently, every page in a manual has the same h1 and title tag - the title of the manual. The section title or the "Updates" heading is in an h2.

Print CSS shows heading order incorrectly

What

When users print a manual, the CSS currently makes H2s appear smaller than H3s.

Why is it a problem?

Some manuals are regularly printed by users eg the MOT inspection manual and the Highway Code

This is confusing and counterintuitive. It makes it difficult for the user to establish order and hierarchy - DVSA

Zendesk ticket

Example

An example manual page : https://www.gov.uk/guidance/the-highway-code/rules-for-pedestrians-1-to-35

H2: General guidance (rules 1 to 6)
H3: Rule 1

The H2 does indeed appear smaller than the H3:

Screenshot 2020-02-25 at 12 12 16

Inconsistent search input rendering

Issue found while visiting the Scottish Government's Device Lab

Notice how when this was reimplemented a regression was introduced somewhere. (Potentially they were done at the same time, I'm not certain ๐Ÿ˜„ )

screen shot 2016-11-21 at 21 25 28
screen shot 2016-11-21 at 21 24 49

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependencies.

As a result, Dependabot couldn't update any of your dependencies.

This could have been caused by a git reference having been deleted at the source, by an out-of-sync lockfile, or by a bug in Dependabot.

To help diagnose the issue, please try running bundle update --patch locally. If no errors occur, get in touch and we'll help dig into it.

You can mention @dependabot in the comments below to contact the Dependabot team.

Odd alignment of 'give feedback'

Issue found while visiting the Scottish Government's Device Lab

screen shot 2016-11-21 at 21 20 56

Think all we need to do here is to float the link to the right so the whitespace is as expected.

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.