Skip to content

Commit

Permalink
update website url and add Lunr indexing support for all websites
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierJourdan committed Nov 12, 2024
1 parent 00c1c3b commit 95aca70
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-cti-doc-on-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
node-version: '18'
- name: Install Antora with the Antora Lunr Extension
run: npm i antora @antora/lunr-extension
- name: Install chineese indexing support for Lunr # See https://gitlab.com/antora/antora-lunr-extension#user-content-support-for-other-languages
run: npm i @node-rs/jieba
- name: Generate English Site
run: npx antora --to-dir build/sites/en antora/antora-playbook-en.yml
- name: Generate French Site
Expand Down
4 changes: 2 additions & 2 deletions antora/antora-playbook-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ site:
title: CTI documentation
# the 404 page and sitemap files only get generated when the url property is set
url: https://labviewcommunitytraining.github.io/cti-documentation/en
start_page: cti-doc_en::index.adoc
start_page: cti-doc::index.adoc
robots: allow
antora:
extensions:
- require: '@antora/lunr-extension'
languages: [en, fr]
languages: [en]
urls:
latest_version_segment: latest
latest_version_segment_strategy: redirect:to
Expand Down
3 changes: 2 additions & 1 deletion antora/antora-playbook-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ site:
title: CTI documentation
# the 404 page and sitemap files only get generated when the url property is set
url: https://labviewcommunitytraining.github.io/cti-documentation/es
start_page: cti-doc_es::index.adoc
start_page: cti-doc::index.adoc
robots: allow
antora:
extensions:
- require: '@antora/lunr-extension'
languages: [es]
urls:
latest_version_segment: latest
latest_version_segment_strategy: redirect:to
Expand Down
3 changes: 2 additions & 1 deletion antora/antora-playbook-fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ site:
title: CTI documentation
# the 404 page and sitemap files only get generated when the url property is set
url: https://labviewcommunitytraining.github.io/cti-documentation/fr
start_page: cti-doc_fr::index.adoc
start_page: cti-doc::index.adoc
robots: allow
antora:
extensions:
- require: '@antora/lunr-extension'
languages: [fr]
urls:
latest_version_segment: latest
latest_version_segment_strategy: redirect:to
Expand Down
Binary file modified user-interface/build/ui-bundle.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion user-interface/src/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="#"><span>🇺🇸 English</span></a>
<div class="navbar-dropdown">
{{!-- <a class="navbar-item" href="https://labviewcommunitytraining.github.io/cti-documentation/en/index.html">🇺🇸 English</a> --}}
<a class="navbar-item" href="https://labviewcommunitytraining.github.io/cti-documentation/en/index.html">🇺🇸 English</a>
<a class="navbar-item" href="https://labviewcommunitytraining.github.io/cti-documentation/fr/index.html">🇫🇷 Français</a>
<a class="navbar-item" href="https://labviewcommunitytraining.github.io/cti-documentation/es/index.html">🇪🇸 Español</a>
<a class="navbar-item" href="https://labviewcommunitytraining.github.io/cti-documentation/zh/index.html">🇨🇳 中国人</a>
Expand Down

0 comments on commit 95aca70

Please sign in to comment.