From 06cd1997c3635943d1c31bf91c0fc917364523c4 Mon Sep 17 00:00:00 2001 From: Federico Bucchi Date: Fri, 30 May 2025 09:22:01 -0700 Subject: [PATCH] Hide storybook from prod env --- README.md | 2 +- _config.yml | 2 +- _config_dev.yml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 _config_dev.yml diff --git a/README.md b/README.md index b92a8e5ed..e35035784 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ To run the site locally, enter the following commands into a terminal window: git clone https://github.com/swiftlang/swift-org-website.git cd swift-org-website bundle install -LC_ALL=en_us.UTF-8 bundle exec jekyll serve +LC_ALL=en_us.UTF-8 bundle exec jekyll serve --config _config.yml,_config_dev.yml open "http://localhost:4000" ``` diff --git a/_config.yml b/_config.yml index 14023e6c1..228a564b2 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,7 @@ url: https://swift.org title: Swift.org description: "Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns." timezone: America/Lower_Princes -exclude: ["README.md", "config.ru", "Gemfile", "Gemfile.lock", "Procfile", "vendor"] +exclude: ["README.md", "config.ru", "Gemfile", "Gemfile.lock", "Procfile", "vendor", "get-started/storybook"] safe: false future: true diff --git a/_config_dev.yml b/_config_dev.yml new file mode 100644 index 000000000..1476166ed --- /dev/null +++ b/_config_dev.yml @@ -0,0 +1 @@ +exclude: [] \ No newline at end of file