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

Improvements to documentation around getting Developer Docs running locally #4875

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ChrisBAshton
Copy link
Contributor

No description provided.

We can give a hint to the user as to how to fix the following
issue:

```
== Request: /document-types/landing_page.html
       error  build/document-types/landing_page.html
undefined method `include?' for nil
/govuk/govuk-developer-docs/app/document_types.rb:83:in `block in shift_low_value_schemas'
/govuk/govuk-developer-docs/app/document_types.rb:82:in `each'
/govuk/govuk-developer-docs/app/document_types.rb:82:in `shift_low_value_schemas'
/govuk/govuk-developer-docs/app/document_types.rb:74:in `schemas'
/govuk/govuk-developer-docs/source/templates/document_type_template.html.md.erb:28:in `__tilt_29200'
/root/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/tilt-2.0.11/lib/tilt/template.rb:181:in `call'
/root/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/tilt-2.0.11/lib/tilt/template.rb:181:in `evaluate'
/root/.rbenv/versions/3.3.1/lib/ruby/gems/3.3.0/gems/tilt-2.0.11/lib/tilt/template.rb:109:in `render'
```
App dependency install, build script and startup scripts seemed
oddly dispersed throughout the README, making it difficult to
talk about shared logic such as the ENV variables. I've consolidated
these into their own "Run the app locally" section.

Other things to note:

- I added `--verbose` to the build script, as the build initially
  failed for me and I had to re-run the script with verbose mode
  to see any meaningful output. The output isn't much more verbose
  than without the flag, so there seems no downside.
- I removed the section on `.env` file, as it seems to be an
  implementation detail, and also incompatible with running via
  govuk-docker. But I'd like to revisit this.
- I'm currently able to compile the website fine, and fetch the
  remote docs, but am struggling to get the app to _run_ locally
  (in govuk-docker).
- I'd very much like to remove the "docker-compose.yml" hack
  workaround.
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.

1 participant