Skip to content

Commit c290fc6

Browse files
authored
Feat: Disable sitemap generation in local (circleci#7904)
1 parent 1f8e976 commit c290fc6

File tree

4 files changed

+3
-43
lines changed

4 files changed

+3
-43
lines changed

Rakefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ end
1313

1414
desc 'Build Jekyll site'
1515
task :build do
16-
# Create jekyll config file to override things
17-
sh "echo 'baseurl: \"\/#{JEKYLL_BASENAME}\"' > jekyll/_config_override.yml"
1816
# Build the Jekyll site
1917
config = Jekyll.configuration({
2018
'source' => './jekyll',
2119
'destination' => "./jekyll/_site/#{JEKYLL_BASENAME}",
22-
'config' => ['./jekyll/_config.yml','./jekyll/_config_production.yml','./jekyll/_config_override.yml']
20+
'config' => ['./jekyll/_config.yml']
2321
})
2422
site = Jekyll::Site.new(config)
2523
Jekyll::Commands::Build.build site, config

jekyll/_config_staging.yml jekyll/_config_local.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
url: "https://static-staging.circleci.com"
2-
rollbar_env: development
3-
41
defaults:
52
- scope:
63
path: ""
@@ -27,5 +24,5 @@ defaults:
2724
search: true
2825
toc: true # Enable TOC by default
2926
suggested: false # Disable helpful resources section by default
30-
sitemap: true # Enable sitemap in staging
27+
sitemap: false # Disable sitemap in local
3128
readtime: true # Enable Read Time by default

jekyll/_config_production.yml

-35
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "This is the public repository for <https://circleci.com/docs/>, a static website generated by [Jekyll](https://jekyllrb.com/). If you find any errors in our docs or have suggestions, please follow our [Contributing Guide](CONTRIBUTING.md) to submit an issue or pull request.",
55
"scripts": {
6-
"jekyll-dev": "bundle exec jekyll serve -s jekyll --incremental --host=0.0.0.0 --trace",
6+
"jekyll-dev": "bundle exec jekyll serve -s jekyll --incremental --host=0.0.0.0 --trace --config jekyll/_config.yml,jekyll/_config_local.yml",
77
"json": "bundle exec rake build",
88
"dev-clean": "bundle exec jekyll clean && rm jekyll/.jekyll-metadata && rm -rf jekyll_json/",
99
"clean": "docker exec -it jekyll bundle exec jekyll clean",

0 commit comments

Comments
 (0)