mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-23 00:34:55 +00:00
Build documentation with Jekyll on CI (#8504)
This commit is contained in:

committed by
GitHub

parent
bed09ae851
commit
f3d8a05ceb
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -4,6 +4,7 @@ permissions:
|
||||
contents: read
|
||||
env:
|
||||
NODE_VERSION: 16
|
||||
RUBY_VERSION: 3.1.2
|
||||
jobs:
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
@ -79,6 +80,23 @@ jobs:
|
||||
path: ./*
|
||||
key: ${{ github.ref }}-${{ github.sha }}-build-release
|
||||
|
||||
build-docs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ env.RUBY_VERSION }}
|
||||
bundler-cache: true
|
||||
working-directory: ./docs
|
||||
|
||||
- name: Run jekyll build
|
||||
working-directory: ./docs
|
||||
run: bundle exec jekyll build --strict_front_matter
|
||||
|
||||
lint:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,3 +19,4 @@ Gemfile.lock
|
||||
yarn.lock
|
||||
*.log
|
||||
.eslintcache
|
||||
.jekyll-cache
|
||||
|
@ -1,4 +1,4 @@
|
||||
exclude: [build, debug, node_modules, spec, src, CNAME, reference-tpl.html, CHANGELOG.md, README.md, LICENSE]
|
||||
exclude: [build, debug, node_modules, spec, src, CNAME, reference-tpl.html, CHANGELOG.md, README.md, LICENSE, vendor/bundle, vendor/cache, vendor/gems, vendor/ruby]
|
||||
|
||||
markdown: kramdown
|
||||
|
||||
|
Reference in New Issue
Block a user