From 7b62fc2a6258dfb65ea7cac3bc16642a69424289 Mon Sep 17 00:00:00 2001 From: Abdullah Hashim Date: Fri, 22 May 2026 12:22:35 -0400 Subject: [PATCH] Strip default Bridgetown scaffold from docs site --- docs/Gemfile.lock | 2 +- docs/README.md | 71 --------------- docs/frontend/javascript/index.js | 1 - docs/frontend/styles/index.css | 85 +---------------- docs/frontend/styles/syntax-highlighting.css | 77 ---------------- docs/src/_components/shared/navbar.erb | 11 --- docs/src/_components/shared/navbar.rb | 5 - docs/src/_data/site_metadata.yml | 13 +-- docs/src/_layouts/default.erb | 15 --- docs/src/_layouts/post.erb | 7 -- docs/src/_partials/_footer.erb | 3 - docs/src/_partials/_head.erb | 10 -- .../2026-04-28-welcome-to-bridgetown.md | 26 ------ docs/src/about.md | 10 -- docs/src/favicon.ico | 0 docs/src/images/logo.svg | 91 ------------------- docs/src/index.md | 17 +--- docs/src/posts.md | 14 --- 18 files changed, 6 insertions(+), 452 deletions(-) delete mode 100644 docs/README.md delete mode 100644 docs/frontend/styles/syntax-highlighting.css delete mode 100644 docs/src/_components/shared/navbar.erb delete mode 100644 docs/src/_components/shared/navbar.rb delete mode 100644 docs/src/_layouts/default.erb delete mode 100644 docs/src/_layouts/post.erb delete mode 100644 docs/src/_partials/_footer.erb delete mode 100644 docs/src/_partials/_head.erb delete mode 100644 docs/src/_posts/2026-04-28-welcome-to-bridgetown.md delete mode 100644 docs/src/about.md delete mode 100644 docs/src/favicon.ico delete mode 100644 docs/src/images/logo.svg delete mode 100644 docs/src/posts.md diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index bd5288d..5429c56 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -49,7 +49,7 @@ GEM zeitwerk (~> 2.5) bridgetown-paginate (2.1.2) bridgetown-core (= 2.1.2) - bridgetown-stoa (0.0.2) + bridgetown-stoa (0.1.0) bridgetown (~> 2.0) concurrent-ruby (1.3.6) console (1.35.1) diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 2c5bca1..0000000 --- a/docs/README.md +++ /dev/null @@ -1,71 +0,0 @@ -# Bridgetown Website README - -Welcome to your new Bridgetown website! You can update this README file to provide additional context and setup information for yourself or other contributors. - -## Table of Contents - -- [Bridgetown Website README](#bridgetown-website-readme) - - [Table of Contents](#table-of-contents) - - [Prerequisites](#prerequisites) - - [Install](#install) - - [Development](#development) - - [Commands](#commands) - - [Deployment](#deployment) - - [Contributing](#contributing) - -## Prerequisites - -- [GCC](https://gcc.gnu.org/install/) -- [Make](https://www.gnu.org/software/make/) -- [Ruby](https://www.ruby-lang.org/en/downloads/) - - `>= 3.2` -- [Bridgetown Gem](https://rubygems.org/gems/bridgetown) - - `gem install bridgetown -N` -- [Node](https://nodejs.org) - - `>= 20` - -## Install - -```sh -cd bridgetown-site-folder -bundle install && npm install -``` -> Learn more: [Bridgetown Getting Started Documentation](https://www.bridgetownrb.com/docs/). - -## Development - -To start your site in development mode, run `bin/bridgetown start` and navigate to [localhost:4000](https://localhost:4000/)! - -Use a [theme](https://github.com/topics/bridgetown-theme) or add some [plugins](https://www.bridgetownrb.com/plugins/) to get started quickly. - -### Commands - -```sh -# running locally -bin/bridgetown start - -# build & deploy to production -bin/bridgetown deploy - -# load the site up within a Ruby console (IRB) -bin/bridgetown console -``` - -> Learn more: [Bridgetown CLI Documentation](https://www.bridgetownrb.com/docs/command-line-usage) - -## Deployment - -You can deploy Bridgetown sites on hosts like statichost.eu and Render as well as traditional web servers by simply building and copying the output folder to your HTML root. - -> Read the [Bridgetown Deployment Documentation](https://www.bridgetownrb.com/docs/deployment) for more information. - -## Contributing - -If repo is on GitHub: - -1. Fork it -2. Clone the fork using `git clone` to your local development machine. -3. Create your feature branch (`git checkout -b my-new-feature`) -4. Commit your changes (`git commit -am 'Add some feature'`) -5. Push to the branch (`git push origin my-new-feature`) -6. Create a new Pull Request diff --git a/docs/frontend/javascript/index.js b/docs/frontend/javascript/index.js index dda7fc8..0ce09f9 100644 --- a/docs/frontend/javascript/index.js +++ b/docs/frontend/javascript/index.js @@ -1,5 +1,4 @@ import "$styles/index.css" -import "$styles/syntax-highlighting.css" // Import all JavaScript & CSS files from src/_components import components from "$components/**/*.{js,jsx,js.rb,css}" diff --git a/docs/frontend/styles/index.css b/docs/frontend/styles/index.css index 4ba7b64..0ea3fa5 100644 --- a/docs/frontend/styles/index.css +++ b/docs/frontend/styles/index.css @@ -1,84 +1 @@ -:root { - --body-background: #f2f2f2; - --body-color: #444; - --heading-color: black; - --action-color: #d64045; -} - -body { - background: var(--body-background); - color: var(--body-color); - font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", - "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", - "Helvetica", "Arial", sans-serif; - margin: 0 8px; - font-size: 108%; - line-height: 1.5; -} - -a { - color: var(--action-color); - text-decoration: underline; - text-decoration-color: #ffb088; -} - -h1 { - margin: 1rem 0 3rem; - text-align: center; - font-weight: 900; - font-size: 2.5rem; - color: var(--heading-color); - line-height: 1.2; -} - -body > header { - margin: 1rem; - text-align: center; -} - -body > header img { - display: inline-block; - width: 400px; - max-width: 100%; -} - -body > nav ul { - margin: 2rem 0; - padding: 0; - list-style-type: none; - display: flex; - justify-content: center; - gap: 1.5rem; - font-size: 1.3rem; - font-weight: bold; -} - -body > nav a { - text-decoration: none; -} - -main { - margin: 2rem auto 4rem; - max-width: 65rem; - min-height: calc(100vh - 200px); - padding: 25px 25px 50px; - background: white; - box-shadow: 2px 3px 3px #ddd; - border-radius: 3px; - - @media (max-width: 500px) { - padding: 16px 16px 50px; - } -} - -footer { - text-align: center; - margin-bottom: 4rem; - font-size: 1em; -} - -hr { - border: none; - border-top: 2px dotted #bbb; - margin: 3rem 0; -} +/* Intentionally empty. Stoa will ship styles in a future release. */ diff --git a/docs/frontend/styles/syntax-highlighting.css b/docs/frontend/styles/syntax-highlighting.css deleted file mode 100644 index 207188b..0000000 --- a/docs/frontend/styles/syntax-highlighting.css +++ /dev/null @@ -1,77 +0,0 @@ -/* - Syntax Highlighting for Code Snippets - - https://www.bridgetownrb.com/docs/liquid/tags#stylesheets-for-syntax-highlighting - - Other styles available eg. https://github.com/jwarby/jekyll-pygments-themes - To use another style, delete all styles in this file and replace them with - the new styles. Or create your own! - -*/ - -pre.highlight { - padding: 16px; - background-color: #F6F8FA; -} - -.highlight .hll { background-color: #ffffcc } -.highlight .c { color: #999988; font-style: italic } /* Comment */ -.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ -.highlight .k { color: #000000; font-weight: bold } /* Keyword */ -.highlight .o { color: #000000; font-weight: bold } /* Operator */ -.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ -.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ -.highlight .ge { color: #000000; font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #aa0000 } /* Generic.Error */ -.highlight .gh { color: #999999 } /* Generic.Heading */ -.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #555555 } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ -.highlight .gt { color: #aa0000 } /* Generic.Traceback */ -.highlight .kc { color: #000000; font-weight: bold } /* Keyword.Constant */ -.highlight .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */ -.highlight .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */ -.highlight .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */ -.highlight .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ -.highlight .m { color: #009999 } /* Literal.Number */ -.highlight .s { color: #d01040 } /* Literal.String */ -.highlight .na { color: #008080 } /* Name.Attribute */ -.highlight .nb { color: #0086B3 } /* Name.Builtin */ -.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ -.highlight .no { color: #008080 } /* Name.Constant */ -.highlight .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */ -.highlight .ni { color: #800080 } /* Name.Entity */ -.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ -.highlight .nl { color: #990000; font-weight: bold } /* Name.Label */ -.highlight .nn { color: #555555 } /* Name.Namespace */ -.highlight .nt { color: #000080 } /* Name.Tag */ -.highlight .nv { color: #008080 } /* Name.Variable */ -.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mf { color: #009999 } /* Literal.Number.Float */ -.highlight .mh { color: #009999 } /* Literal.Number.Hex */ -.highlight .mi { color: #009999 } /* Literal.Number.Integer */ -.highlight .mo { color: #009999 } /* Literal.Number.Oct */ -.highlight .sb { color: #d01040 } /* Literal.String.Backtick */ -.highlight .sc { color: #d01040 } /* Literal.String.Char */ -.highlight .sd { color: #d01040 } /* Literal.String.Doc */ -.highlight .s2 { color: #d01040 } /* Literal.String.Double */ -.highlight .se { color: #d01040 } /* Literal.String.Escape */ -.highlight .sh { color: #d01040 } /* Literal.String.Heredoc */ -.highlight .si { color: #d01040 } /* Literal.String.Interpol */ -.highlight .sx { color: #d01040 } /* Literal.String.Other */ -.highlight .sr { color: #009926 } /* Literal.String.Regex */ -.highlight .s1 { color: #d01040 } /* Literal.String.Single */ -.highlight .ss { color: #990073 } /* Literal.String.Symbol */ -.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #008080 } /* Name.Variable.Class */ -.highlight .vg { color: #008080 } /* Name.Variable.Global */ -.highlight .vi { color: #008080 } /* Name.Variable.Instance */ -.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/docs/src/_components/shared/navbar.erb b/docs/src/_components/shared/navbar.erb deleted file mode 100644 index 1565e29..0000000 --- a/docs/src/_components/shared/navbar.erb +++ /dev/null @@ -1,11 +0,0 @@ -
- Logo -
- - diff --git a/docs/src/_components/shared/navbar.rb b/docs/src/_components/shared/navbar.rb deleted file mode 100644 index 53e3416..0000000 --- a/docs/src/_components/shared/navbar.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Shared::Navbar < Bridgetown::Component - def initialize(metadata:, resource:) - @metadata, @resource = metadata, resource - end -end diff --git a/docs/src/_data/site_metadata.yml b/docs/src/_data/site_metadata.yml index d60f97d..0aa24c2 100644 --- a/docs/src/_data/site_metadata.yml +++ b/docs/src/_data/site_metadata.yml @@ -1,11 +1,2 @@ -# Site settings -# These are used to personalize your new site. If you look in the HTML files, -# you will see them accessed via {{ site.metadata.title }}, {{ site.metadata.email }}, and so on. -# You can create any custom variable you would like, and they will be accessible -# in the templates via {{ site.metadata.myvariable }}. - -title: Your awesome title -tagline: This site is totally awesome -email: your-email@example.com -description: >- - Write an awesome description for your new site here. It will appear in your document head meta (for Google search results) and in your feed.xml site description. +title: a11y-lint — Rails accessibility linter +tagline: Lint your Rails views for accessibility diff --git a/docs/src/_layouts/default.erb b/docs/src/_layouts/default.erb deleted file mode 100644 index 1da7c0c..0000000 --- a/docs/src/_layouts/default.erb +++ /dev/null @@ -1,15 +0,0 @@ - - - - <%= render "head", metadata: site.metadata, title: data.title %> - - - <%= render Shared::Navbar.new(metadata: site.metadata, resource: resource) %> - -
- <%= yield %> -
- - <%= render "footer", metadata: site.metadata %> - - diff --git a/docs/src/_layouts/post.erb b/docs/src/_layouts/post.erb deleted file mode 100644 index 0fd210c..0000000 --- a/docs/src/_layouts/post.erb +++ /dev/null @@ -1,7 +0,0 @@ ---- -layout: bridgetown-stoa/layout ---- - -

<%= data.title %>

- -<%= yield %> diff --git a/docs/src/_partials/_footer.erb b/docs/src/_partials/_footer.erb deleted file mode 100644 index 7614673..0000000 --- a/docs/src/_partials/_footer.erb +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/docs/src/_partials/_head.erb b/docs/src/_partials/_head.erb deleted file mode 100644 index 687ab6e..0000000 --- a/docs/src/_partials/_head.erb +++ /dev/null @@ -1,10 +0,0 @@ - - -<% resource_title = strip_html(strip_newlines(title)) %> -<% if resource_title != "Index" %><%= resource_title %> | <%= metadata.title %><% else %><%= metadata.title %>: <%= metadata.tagline %><% end %> - - - - - -<%= live_reload_dev_js %> diff --git a/docs/src/_posts/2026-04-28-welcome-to-bridgetown.md b/docs/src/_posts/2026-04-28-welcome-to-bridgetown.md deleted file mode 100644 index f590483..0000000 --- a/docs/src/_posts/2026-04-28-welcome-to-bridgetown.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: post -title: "Your First Post on Bridgetown" -date: 2026-04-28 06:13:48 -0400 -categories: updates ---- - -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `bin/bridgetown start`, which launches a web server and auto-regenerates your site when a file is updated. - -Bridgetown requires blog post files to be named according to the following format: - -`YEAR-MONTH-DAY-title.EXT` - -Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `EXT` is the file extension representing the format used in the file (for example, `md` for Markdown). After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Bridgetown also offers powerful support for code snippets: - -```ruby -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -``` - -Check out the [Bridgetown docs](https://bridgetownrb.com/docs/) for more info on how to get the most out of Bridgetown. File all bugs/feature requests at [Bridgetown’s GitHub repo](https://github.com/bridgetownrb/bridgetown). If you have questions, you can ask them on [Bridgetown Discussions on GitHub](https://github.com/bridgetownrb/bridgetown/discussions). diff --git a/docs/src/about.md b/docs/src/about.md deleted file mode 100644 index 93cce53..0000000 --- a/docs/src/about.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -layout: page -title: About ---- - -This is the basic Bridgetown site template. You can find out more info about customizing your Bridgetown site, as well as basic Bridgetown usage documentation at [bridgetownrb.com](https://bridgetownrb.com/) - -You can find the source code for Bridgetown at GitHub: -[bridgetownrb](https://github.com/bridgetownrb) / -[bridgetown](https://github.com/bridgetownrb/bridgetown) diff --git a/docs/src/favicon.ico b/docs/src/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/docs/src/images/logo.svg b/docs/src/images/logo.svg deleted file mode 100644 index 3006b5e..0000000 --- a/docs/src/images/logo.svg +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/src/index.md b/docs/src/index.md index 46fc21b..2566d92 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -1,20 +1,7 @@ --- -# Feel free to add content and custom Front Matter to this file. - layout: bridgetown-stoa/layout --- -# Welcome to your new Bridgetown website. - -You can learn more about how to build and deploy your new website by reading the [Bridgetown documentation](https://www.bridgetownrb.com/docs). - -You can add some [plugins](https://www.bridgetownrb.com/plugins/) to get started quickly or [write your own](https://www.bridgetownrb.com/docs/plugins) to extend the functionality of your site. - -Be sure to check out the [Bridgetown Discord chat](https://discord.gg/4E6hktQGz4) if you have questions or are looking for helpful tips & tricks. - -_Have fun and **good luck**!_ - ----- +# a11y-lint -**Generated by v2.1.2** -{:style="text-align:center"} +Lint your Rails views for accessibility. diff --git a/docs/src/posts.md b/docs/src/posts.md deleted file mode 100644 index 1e27997..0000000 --- a/docs/src/posts.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -layout: page -title: Posts ---- - - - -If you have a lot of posts, you may want to consider adding [pagination](https://www.bridgetownrb.com/docs/content/pagination)!