mirror of
https://github.com/boostorg/boostlook.git
synced 2026-01-21 16:52:19 +00:00
Compare commits
1 Commits
develop
...
qa/boostlo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e06818f3e |
21
.github/workflows/sync-boostlook-css.yml
vendored
21
.github/workflows/sync-boostlook-css.yml
vendored
@@ -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.
5362
boostlook.css
5362
boostlook.css
File diff suppressed because it is too large
Load Diff
11
boostlook.rb
11
boostlook.rb
@@ -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
4055
boostlook_tino.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
notosans.woff2
BIN
notosans.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user