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

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

commit c09fdad2bef5dd14ab5ca63463e198bae7ebb1c1
Author: Sebb <s...@apache.org>
AuthorDate: Thu May 30 17:26:35 2024 +0100

    Generate GHA files
---
 .github/workflows/build-pelican.yml | 16 +++++++++
 pelicanconf.py                      | 69 +++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/.github/workflows/build-pelican.yml 
b/.github/workflows/build-pelican.yml
new file mode 100644
index 0000000..e227877
--- /dev/null
+++ b/.github/workflows/build-pelican.yml
@@ -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'
diff --git a/pelicanconf.py b/pelicanconf.py
new file mode 100644
index 0000000..4ec4988
--- /dev/null
+++ b/pelicanconf.py
@@ -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,
+}
+
+
+
+
+
+
+
+

Reply via email to