diff --git a/Gemfile b/Gemfile index a4ffe394f..38d20e731 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,4 @@ source 'https://rubygems.org' gem 'github-pages', group: :jekyll_plugins gem "jekyll", "~> 3.7" +gem 'jekyll-sitemap' diff --git a/Gemfile.lock b/Gemfile.lock index 47f77854f..bf08cec7b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -244,6 +244,7 @@ PLATFORMS DEPENDENCIES github-pages jekyll (~> 3.7) + jekyll-sitemap BUNDLED WITH - 1.16.4 + 1.16.6 diff --git a/docs/_config.yml b/docs/_config.yml index c10593255..2f3fcfe49 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -15,6 +15,7 @@ kramdown: plugins: - jekyll-feed - jekyll-redirect-from + - jekyll-sitemap keep_files: - assets - releases diff --git a/package.json b/package.json index f8ef35a0c..ba384c4cd 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ "build": "run-p build-*", "build-bundle": "node ./build.js", "build-esm": "rollup -c", + "build-docs": "cd docs; bundle exec jekyll build", + "serve-docs": "cd docs; bundle exec jekyll serve --incremental --verbose", "lint": "run-p lint-js lint-markdown", "lint-js": "eslint '**/*.{js,mjs}'", "lint-markdown": "find docs -type f -name '*.md' ! -name 'changelog.md' | xargs markdownlint",