Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch the gov.uk tech-docs gems after installing #393

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Conversation

digitalronin
Copy link
Contributor

These files represent the patches described in this issue:
alphagov/tech-docs-gem#191

They enable using (a patched version of) the gov.uk tech-docs gem to publish a
documentation site using github pages without requiring the site to be
published at the root docpath ("/") of a dedicated domain.

i.e. this enables publishing a site at:

https://username.github.io/my-repo

This is the default github pages URL for the repository "my-repo" belonging to
the github user/organisation "username".

As opposed to:

https://my.custom.domain/

Without these patches, the search function of the site will not work correctly.

The patch files in this directory are used in the Dockerfile to build the
docker image which is used in the publishing process.

This is a nasty hack, but the alternative is to maintain forks of two gems,
govuk_tech_docs and middleman-search-gds, so this seems a pragmatic
solution until the issue above is resolved in the upstream gems.

These files represent the patches described in this issue:
alphagov/tech-docs-gem#191

They enable using (a patched version of) the gov.uk tech-docs gem to publish a
documentation site using github pages without requiring the site to be
published at the root docpath ("/") of a dedicated domain.

i.e. this enables publishing a site at:

```
https://username.github.io/my-repo
```

This is the default github pages URL for the repository "my-repo" belonging to
the github user/organisation "username".

As opposed to:

```
https://my.custom.domain/
```

Without these patches, the search function of the site will not work correctly.

The patch files in this directory are used in the Dockerfile to build the
docker image which is used in the publishing process.

This is a nasty hack, but the alternative is to maintain forks of two gems,
`govuk_tech_docs` and `middleman-search-gds`, so this seems a pragmatic
solution until the issue above is resolved in the upstream gems.
digitalronin added a commit to ministryofjustice/technical-guidance that referenced this pull request Aug 6, 2020
This change converts the site to use (a patched
version of) the gov.uk tech-docs template & gems.

https://github.com/alphagov/tech-docs-template

Details of the patch are here:
ministryofjustice/cloud-platform-user-guide#393

This gives the site a search feature, as well as
dynamic review dates (i.e. you see a big red
banner at the foot of the page if the content was
not reviewed when it should have been).

Publishing is now done via a github action. See:

.github/workflows/publish.yml

...for details.
@digitalronin digitalronin merged commit 9788e1a into main Aug 10, 2020
@digitalronin digitalronin deleted the patch-tech-docs branch August 10, 2020 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants