Skip to content

Commit

Permalink
ER-466 change to govuk_markdown (#902)
Browse files Browse the repository at this point in the history
Replace govspeak with govuk_markdown.

Simplify use of markup with a single method called m which accepts markdown, locale keys, variables, arguments to govuk_markdown and also pulls from the CMS.
  • Loading branch information
peterdavidhamilton authored Oct 17, 2023
1 parent 414ce93 commit 4cc9af8
Show file tree
Hide file tree
Showing 107 changed files with 532 additions and 2,466 deletions.
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ GOVUK_NOTIFY_API_KEY=example-12345678-1234-1234-1234-abcd12345678-12345678-1234-
# [email protected]


# https://github.com/alphagov/plek
GOVUK_APP_DOMAIN=localhost
GOVUK_WEBSITE_ROOT=www

# postgres
DATABASE_URL=postgres://postgres:password@localhost:5432/early_years_foundation_recovery_test
POSTGRES_USER=
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/azure-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ jobs:
--vnet ${{ secrets.AZURE_VNET }} \
--subnet ${{ secrets.AZURE_WORKER_APP_SUBNET }} \
--ip-address Private \
--environment-variables RAILS_ENV=${{ vars.WEBAPP_CONFIG_RAILS_ENV }} RAILS_MASTER_KEY=${{ secrets.WEBAPP_CONFIG_RAILS_MASTER_KEY }} RAILS_LOG_TO_STDOUT=${{ vars.WEBAPP_CONFIG_RAILS_LOG_TO_STDOUT }} GCS_CREDENTIALS=${{ secrets.GCS_CREDENTIALS }} GOOGLE_CLOUD_BUCKET=${{ vars.WEBAPP_CONFIG_GOOGLE_CLOUD_BUCKET }} DATABASE_URL=${{ secrets.WEBAPP_DATABASE_URL }} GOVUK_APP_DOMAIN=localhost GOVUK_WEBSITE_ROOT=www
--environment-variables RAILS_ENV=${{ vars.WEBAPP_CONFIG_RAILS_ENV }} RAILS_MASTER_KEY=${{ secrets.WEBAPP_CONFIG_RAILS_MASTER_KEY }} RAILS_LOG_TO_STDOUT=${{ vars.WEBAPP_CONFIG_RAILS_LOG_TO_STDOUT }} GCS_CREDENTIALS=${{ secrets.GCS_CREDENTIALS }} GOOGLE_CLOUD_BUCKET=${{ vars.WEBAPP_CONFIG_GOOGLE_CLOUD_BUCKET }} DATABASE_URL=${{ secrets.WEBAPP_DATABASE_URL }}
2 changes: 1 addition & 1 deletion .github/workflows/azure-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ jobs:
--vnet ${{ secrets.AZURE_VNET }} \
--subnet ${{ secrets.AZURE_WORKER_APP_SUBNET }} \
--ip-address Private \
--environment-variables RAILS_ENV=${{ vars.WEBAPP_CONFIG_RAILS_ENV }} RAILS_MASTER_KEY=${{ secrets.WEBAPP_CONFIG_RAILS_MASTER_KEY }} RAILS_LOG_TO_STDOUT=${{ vars.WEBAPP_CONFIG_RAILS_LOG_TO_STDOUT }} GOOGLE_CLOUD_BUCKET=${{ vars.WEBAPP_CONFIG_GOOGLE_CLOUD_BUCKET }} DATABASE_URL=${{ secrets.WEBAPP_DATABASE_URL }} GOVUK_APP_DOMAIN=localhost GOVUK_WEBSITE_ROOT=www
--environment-variables RAILS_ENV=${{ vars.WEBAPP_CONFIG_RAILS_ENV }} RAILS_MASTER_KEY=${{ secrets.WEBAPP_CONFIG_RAILS_MASTER_KEY }} RAILS_LOG_TO_STDOUT=${{ vars.WEBAPP_CONFIG_RAILS_LOG_TO_STDOUT }} GOOGLE_CLOUD_BUCKET=${{ vars.WEBAPP_CONFIG_GOOGLE_CLOUD_BUCKET }} DATABASE_URL=${{ secrets.WEBAPP_DATABASE_URL }}
2 changes: 1 addition & 1 deletion .github/workflows/azure-deploy-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ jobs:
--vnet ${{ secrets.AZURE_VNET }} \
--subnet ${{ secrets.AZURE_WORKER_APP_SUBNET }} \
--ip-address Private \
--environment-variables RAILS_ENV=${{ vars.WEBAPP_CONFIG_RAILS_ENV }} RAILS_MASTER_KEY=${{ secrets.WEBAPP_CONFIG_RAILS_MASTER_KEY }} RAILS_LOG_TO_STDOUT=${{ vars.WEBAPP_CONFIG_RAILS_LOG_TO_STDOUT }} GOOGLE_CLOUD_BUCKET=${{ vars.WEBAPP_CONFIG_GOOGLE_CLOUD_BUCKET }} DATABASE_URL=${{ secrets.WEBAPP_DATABASE_URL }} GOVUK_APP_DOMAIN=localhost GOVUK_WEBSITE_ROOT=www
--environment-variables RAILS_ENV=${{ vars.WEBAPP_CONFIG_RAILS_ENV }} RAILS_MASTER_KEY=${{ secrets.WEBAPP_CONFIG_RAILS_MASTER_KEY }} RAILS_LOG_TO_STDOUT=${{ vars.WEBAPP_CONFIG_RAILS_LOG_TO_STDOUT }} GOOGLE_CLOUD_BUCKET=${{ vars.WEBAPP_CONFIG_GOOGLE_CLOUD_BUCKET }} DATABASE_URL=${{ secrets.WEBAPP_DATABASE_URL }}
1 change: 0 additions & 1 deletion .github/workflows/content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
PR_NUMBER: pr-${{ github.event.number }}
# @see terraform/workspace-variables/app_config.yml[:content]
DOMAIN: ey-recovery-pr-${{ github.event.number }}.london.cloudapps.digital
GOVUK_WEBSITE_ROOT: ey-recovery-pr-${{ github.event.number }}
steps:
-
name: Checkout Code
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ COPY .yarnrc.yml ${APP_HOME}/.yarnrc.yml
COPY --from=deps /build/.yarn ${APP_HOME}/.yarn
COPY --from=deps /build/node_modules ${APP_HOME}/node_modules

RUN SECRET_KEY_BASE=x \
GOVUK_APP_DOMAIN=x \
GOVUK_WEBSITE_ROOT=x \
bundle exec rails assets:precompile
RUN SECRET_KEY_BASE=x bundle exec rails assets:precompile

COPY ./docker-entrypoint.sh /

Expand All @@ -94,7 +91,7 @@ CMD ["bundle", "exec", "rails", "server"]
FROM app as dev

RUN apk add --no-cache --no-progress --no-check-certificate postgresql-client npm graphviz
# RUN npm install --global adr-log contentful-cli
RUN npm install --global adr-log contentful-cli

RUN bundle config unset without
RUN bundle config set without test ui
Expand Down
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ gem 'contentful_rails'
gem 'govuk-components'
gem 'govuk_design_system_formbuilder'

# Markdown support
gem 'govspeak'
gem 'sassc' # govspeak assets
# # Markdown support
gem 'govuk_markdown'

gem 'govuk_notify_rails'

Expand Down
Loading

0 comments on commit 4cc9af8

Please sign in to comment.