Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfresco/jekyll-build-tools
https://github.com/alfresco/jekyll-build-tools
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alfresco/jekyll-build-tools
- Owner: Alfresco
- License: apache-2.0
- Created: 2024-04-11T13:16:35.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-06T09:18:03.000Z (5 months ago)
- Last Synced: 2024-06-06T10:53:24.937Z (5 months ago)
- Homepage: https://alfresco.github.io/jekyll-build-tools/
- Size: 117 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jekyll-build-tools
This repository helps with maintaining jekyll-based documentation websites
across the Alfresco org.## Quick start
Use the contents of the [docs](./docs) as a starter template for your
repository, copying over the files into it.For best results, try to keep all the documentation under the `docs` folder, but
you can also place the starter template contents in the root of the repository.If you already have some markdown files hanging around, add a
[front matter](https://jekyllrb.com/docs/front-matter/) to each of them at the
beginning of the file:```yml
---
title: Page title
---
```Then create into your repository a new workflow which will take care of building
and publishing the website, e.g. `.github/workflows/docs.yml`:```yml
name: Publish docspermissions:
contents: write
pages: write
id-token: writeon:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/docs.yml"
pull_request:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/docs.yml"jobs:
publish:
uses: Alfresco/jekyll-build-tools/.github/workflows/jekyll-publish.yml@main
with:
# where the _config.yml file is
working-directory: docs
# when to trigger the publish job
publish: ${{ github.event_name == 'push' && github.ref_name == 'main'}}
# check for broken links
validate-html: true
```See the [workflow source](.github/workflows/jekyll-publish.yml) for additional inputs.
## Local preview
You can also preview your website locally.
A Ruby runtime (e.g.[rbenv](https://github.com/rbenv/rbenv)) is mandatory.
First time setup:
```sh
# enter your project doc folder
cd docs
# install the ruby dependency manager
gem install bundler
# install dependencies using the Gemfile.lock
bundle install
```Finally run it locally:
```sh
bundle exec jekyll serve -l
```