Skip to content

Commit

Permalink
Generate GHA files
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed May 30, 2024
1 parent ea708f4 commit c09fdad
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build-pelican.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build a Pelican Website
on:
push:
branches: [ 'main' ]
workflow_dispatch:
jobs:
build-pelican:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- uses: apache/infrastructure-actions/pelican@main
with:
destination: 'sebb-gha-site'
gfm: 'true'
69 changes: 69 additions & 0 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

import datetime
# Basic information about the site.
SITENAME = 'Apache OpenOffice'
SITEDESC = 'The official developer website of the Apache OpenOffice open source project, home of OpenOffice Writer, Calc, Impress, Draw and Base.'
SITEDOMAIN = 'openoffice.apache.org'
SITEURL = 'https://openoffice.apache.org'
SITELOGO = 'https://openoffice.apache.org/images/AOO4_website_logo.png'
SITEREPOSITORY = 'https://github.com/apache/openoffice-project/blob/main/content/'
CURRENTYEAR = datetime.date.today().year
TRADEMARKS = 'OpenOffice, Open Office, Apache OpenOffice, Apache Open Office, OpenOffice.org, Developer, Project, Website, Official, Writer, Calc, Impress, Draw, Base, ODF, Open Document Format'
TIMEZONE = 'UTC'
# Theme includes templates and possibly static files
THEME = 'theme/openoffice'
# Specify location of plugins, and which to use
PLUGIN_PATHS = [ 'theme/plugins', ]
# If the website uses any *.ezmd files, include the 'asfreader' plugin
PLUGINS = [ 'gfm', 'asfgenid', ]
# All content is located at '.' (aka content/ )
PAGE_PATHS = [ 'pages' ]
STATIC_PATHS = [ '.', ]
# Where to place/link generated pages

PATH_METADATA = 'pages/(?P<path_no_ext>.*)\\..*'

PAGE_SAVE_AS = '{path_no_ext}.html'
# Don't try to translate
PAGE_TRANSLATION_ID = None
# Disable unused Pelican features
# N.B. These features are currently unsupported, see https://github.com/apache/infrastructure-pelican/issues/49
FEED_ALL_ATOM = None
INDEX_SAVE_AS = ''
TAGS_SAVE_AS = ''
CATEGORIES_SAVE_AS = ''
AUTHORS_SAVE_AS = ''
ARCHIVES_SAVE_AS = ''
# Disable articles by pointing to a (should-be-absent) subdir
ARTICLE_PATHS = [ 'blog' ]
# needed to create blogs page
ARTICLE_URL = 'blog/{slug}.html'
ARTICLE_SAVE_AS = 'blog/{slug}.html'
# Disable all processing of .html files
READERS = { 'html': None, }

# Configure the asfgenid plugin
ASF_GENID = {
'unsafe_tags': True,
'metadata': False,
'elements': True,
'permalinks': True,
'tables': True,

'headings': True,
'headings_re': '^h[1-4]',


'toc': True,
'toc_headers': '^h[1-6]',

'debug': False,
}








0 comments on commit c09fdad

Please sign in to comment.