1 Commits

Author SHA1 Message Date
wdm-ih
0e06818f3e fix: QA fixes, Antora template update
Fixed issues found during QA.

Resolved issue with the Table of Contents block after the original layout changed.

Replaced the ID for the Antora template from "boost-legacy-docs-wrapper" to "antora-template-wrapper".

Added fallback selectors in case the ID is not provided.

Performed manual QA on charconv, beast, outcome library docs, and contributors docs.

charconv like temlates fix
2025-03-25 18:47:29 +02:00
14 changed files with 5331 additions and 4118 deletions

View File

@@ -2,9 +2,10 @@ name: Sync boostlook.css to website-v2 & website-v2-docs
on:
push:
branches: ["develop"]
branches: ["master", "develop"]
paths:
- "boostlook.css"
- "boostlook_tino.css"
workflow_dispatch:
permissions:
@@ -16,10 +17,10 @@ jobs:
if: github.repository == 'boostorg/boostlook'
steps:
- name: Checkout current repository
uses: actions/checkout@v6
uses: actions/checkout@v4
- name: Checkout website-v2 repository
uses: actions/checkout@v6
uses: actions/checkout@v4
with:
repository: boostorg/website-v2
ref: develop
@@ -29,11 +30,17 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
python-version: "3.11"
- name: Copy boostlook.css to website-v2
run: |
cp -v boostlook.css website-v2/static/css/boostlook.css
if [[ "${{ github.ref }}" == "refs/heads/develop" ]]; then
echo "Copying boostlook_tino.css and renaming to boostlook.css"
cp -v boostlook_tino.css website-v2/static/css/boostlook.css
else
echo "Copying boostlook.css"
cp -v boostlook.css website-v2/static/css/boostlook.css
fi
- name: Install pre-commit
if: success()
run: |
@@ -59,11 +66,11 @@ jobs:
echo "No changes to commit. Skipping commit to develop."
fi
- name: Trigger website-v2-docs ui-release workflow
if: success()
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop') && github.event_name == 'push' }}
env:
GH_TOKEN: ${{ secrets.WEBSITE_V2_PAT }}
run: |
gh workflow run ui-release.yml --repo boostorg/website-v2-docs --ref develop
gh workflow run ui-release.yml --repo boostorg/website-v2-docs --ref develop -f boostlook_branch=${{ github.ref_name }}
- name: Trigger website-v2-docs publish workflow
if: success()
env:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -3,21 +3,13 @@ Asciidoctor::Extensions.register do
process do |doc, output|
output = output.sub(/(<body[^>]*>)/, '\1<div class="boostlook">')
output = output.sub('</body>', '</div></body>')
# Comment out toggle button - TOC should always be visible
# output = output.sub(/(<body.*?<div[^>]*id="toc"[^>]*>)/m, '\1<button id="toggle-toc" title="Show Table of Contents" aria-expanded="false" aria-controls="toc">☰</button>')
output = output.sub(/(<body.*?<div[^>]*id="toc"[^>]*>)/m, '\1<button id="toggle-toc" title="Show Table of Contents" aria-expanded="false" aria-controls="toc">☰</button>')
output = output.sub(/(<body.*?<div[^>]*id="footer"[^>]*>)/m, '</div>\1')
script_tag = <<~SCRIPT
<script>
(function() {
const html = document.documentElement;
// Always show TOC - no toggle functionality needed
html.classList.add('toc-visible');
html.classList.add('toc-pinned');
html.classList.remove('toc-hidden');
// Comment out toggle functionality since TOC should always be visible
/*
const isPinned = localStorage.getItem('tocPinned') === 'true';
html.classList.add('toc-hidden');
@@ -64,7 +56,6 @@ Asciidoctor::Extensions.register do
updateTocVisibility(isPinned);
});
*/
})();
</script>
SCRIPT

4055
boostlook_tino.css Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.