alphagov / tech-docs-gem

Gem to distribute the tech docs project
https://tdt-documentation.london.cloudapps.digital/
MIT License
15 stars 38 forks source link

Customise "Report issue" URL #60

Closed vixus0 closed 5 years ago

vixus0 commented 5 years ago

By default, clicking "Report issue" in the contribution banner at the bottom of the page (if turned on) will link the user to creating an issue in the docs' GitHub repo. Some end-users of the tech-docs gem may instead want to link to a page containing a form or allow the user to send an email.

End-users can achieve this by adding

source_urls:
  report_issue_url: https://some-other-site/support-form

to their config/tech-docs.yml file.

I've added tests for this behaviour in spec/govuk_tech_docs/source_urls_spec.rb.

bravegrape commented 5 years ago

@bahmady @jonathanglassman