Skip to content

Commit

Permalink
publication antora vers Github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lea-raya authored and Léa Raya DÉCORNOD committed Jan 22, 2025
1 parent 1ac0bba commit ed0f742
Show file tree
Hide file tree
Showing 9 changed files with 2,425 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish to GitHub Pages
on:
push:
branches:
#- main
#- develop
- feature/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: github-pages
cancel-in-progress: false
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install Antora
run: (cd src/docs && npm ci)
- name: Generate Site
run: (cd src/docs && npm run prestart)
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: build/site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
65 changes: 65 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
site:
title: Documentation technique Esup-Stage
url: ~
robots: allow
content:
sources:
- url: ./
start_path: src/docs
branches:
#- main
#- develop
- feature/*
version:
main: ''
dev: develop
feature/(*): $1
ui:
bundle:
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
snapshot: true
supplemental_files: ./src/docs/ui
output_dir: ./
urls:
# cli: --html-url-extension-style indexify
html_extension_style: indexify
# cli: --redirect-facility gitlab
redirect_facility: static
latest_version_segment_strategy: replace
latest_version_segment: ''
asciidoc:
sourcemap: true
attributes:
icons: font
appendix-caption: Annexe
appendix-refsig: Annexe
caution-caption: Attention
chapter-signifier: Chapitre
chapter-refsig: Chapitre
example-caption: Exemple
figure-caption: Figure
important-caption: Important
last-update-label: Dernière mise à jour
listing-caption: Liste
manname-title: Nom
note-caption: Note
part-signifier: Partie
part-refsig: Partie
preface-title: Préface
section-refsig: Section
table-caption: Tableau
tip-caption: Astuce
toc-title: Table des matières
untitled-label: Sans titre
version-label: Version
warning-caption: Avertissement
kroki-fetch-diagram: true
safe: safe
extensions:
- asciidoctor-kroki
output:
clean: true
dir: ./build/site
runtime:
log:
level: info
1 change: 1 addition & 0 deletions src/docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
Loading

0 comments on commit ed0f742

Please sign in to comment.