This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch preview/sebb-gha
in repository https://gitbox.apache.org/repos/asf/openoffice-project.git

commit cc695c089e8ca3e47b948d65e0b5f996c7a52257
Author: Sebb <s...@apache.org>
AuthorDate: Thu May 30 11:58:01 2024 +0100

    Run infra generate script [skip ci]
---
 .github/workflows/build-pelican.yml | 17 +++++++++
 pelicanconf.py                      | 75 +++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)

diff --git a/.github/workflows/build-pelican.yml 
b/.github/workflows/build-pelican.yml
new file mode 100644
index 0000000..ab691d9
--- /dev/null
+++ b/.github/workflows/build-pelican.yml
@@ -0,0 +1,17 @@
+name: Build a Pelican Website
+on:
+  push:
+    branches: [ "dfoulks/pelican_gha" ]
+  workflow_dispatch:
+jobs:
+  build-pelican:
+    runs-on: ubuntu-latest
+    continue-on-error: true
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          ref: 'dfoulks/pelican_gha'
+      - uses: apache/infrastructure-actions/pelican@main
+        with:
+          destination: 'dfoulks/gha-site'
+          gfm: 'true'
diff --git a/pelicanconf.py b/pelicanconf.py
new file mode 100644
index 0000000..dc282ee
--- /dev/null
+++ b/pelicanconf.py
@@ -0,0 +1,75 @@
+
+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', 'asfrun',  ]
+# 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,
+}
+
+
+
+
+# Configure the asfrun plugin (initialization)
+ASF_RUN = [ '/bin/bash show_environ.sh',  ]
+
+
+# Configure the asfrun plugin (finalization)
+ASF_POSTRUN = [ '/bin/bash show_environ.sh',  ]
+
+
+
+

Reply via email to