Skip to content

Commit

Permalink
chore: ensure build is considered production to enable indexing (#698)
Browse files Browse the repository at this point in the history
Since some time I was wondering why no docs.egi.eu pages are present in
Google search. I just made some verifications and just realised that
until now the indexing by search engines is disabled due the presence of
a meta tag in the source of the pages.

The [docsy theme](https://www.docsy.dev/) version we use relies on
having a `HUGO_ENV` variable set:
https://github.com/google/docsy/blob/f85c845226f30a4b2a55085d142e96def89e4c3f/layouts/partials/head.html#L10-L14

For the record a commit, added after the version we use changes this
behaviour, thus this may have to be revised when updating the theme:
google/docsy@7e2e929
  • Loading branch information
gwarf authored Jan 15, 2025
1 parent 4616d36 commit 3248d7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:

- name: Build and minify using Hugo
run: hugo --minify
env:
HUGO_ENV: production

- name: Generate token for pushing content
uses: tibdex/github-app-token@v2
Expand Down

0 comments on commit 3248d7a

Please sign in to comment.