Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Oct 27, 2024
1 parent 44331ca commit a930c2b
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 59 deletions.
16 changes: 2 additions & 14 deletions documentation/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export default function (eleventyConfig) {
eleventyConfig.addPlugin(embedEverything);
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addShortcode("version", function () {
return String(Date.now());
});

// Responsive image shortcode
eleventyConfig.addLiquidShortcode("image", async function (src, alt, sizes = "100vw") {
Expand Down Expand Up @@ -73,8 +70,8 @@ export default function (eleventyConfig) {

// tokens pass through
eleventyConfig.addPassthroughCopy({
"./../dist/variables.light.css": "./variables.light.css",
"./../dist/variables.dark.css": "./variables.dark.css",
"./node_modules/rider-design-system/dist/variables.Light.css": "./variables-light.css",
"./node_modules/rider-design-system/dist/variables.Dark.css": "./variables-dark.css",
});

// Eleventy Navigation https://www.11ty.dev/docs/plugins/navigation/
Expand All @@ -95,15 +92,6 @@ export default function (eleventyConfig) {
return collection.getFilteredByGlob("pages/*.md");
});

// Creates custom collection "menuItems"
eleventyConfig.addCollection("menuItems", collection =>
collection
.getFilteredByTag("pg")
.sort((a, b) => {
return (a.data.pg_order || 0) - (b.data.pg_order || 0);
})
);

function readableDate(dateObj) {
return DateTime.fromJSDate(dateObj).toFormat("LLL dd, yyyy");
}
Expand Down
4 changes: 2 additions & 2 deletions documentation/_includes/layouts/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<link rel="preconnect" href="https://rsms.me/">
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/variables.light.css" media="(prefers-color-scheme: light)" />
<link rel="stylesheet" href="/variables.dark.css" media="(prefers-color-scheme: dark)" />
<link rel="stylesheet" href="/variables-light.css" media="(prefers-color-scheme: light)" />
<link rel="stylesheet" href="/variables-dark.css" media="(prefers-color-scheme: dark)" />
<link rel="stylesheet" href="/_includes/assets/css/mbta.css" />
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
Expand Down
Binary file removed documentation/content/images/hello.jpg
Binary file not shown.
8 changes: 0 additions & 8 deletions documentation/loader.js

This file was deleted.

34 changes: 0 additions & 34 deletions documentation/netlify.toml

This file was deleted.

5 changes: 5 additions & 0 deletions documentation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"postcss": "^8.4.47",
"qs": "^6.12.0",
"remove": "^0.1.5",
"rider-design-system": "git+https://github.com/mbta/rider-design-system.git",
"staticrypt": "^1.4.3",
"uglify-es": "^3.3.9",
"url-pattern": "^1.0.3"
Expand Down
2 changes: 1 addition & 1 deletion documentation/styles/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const tailwindConfig = require("../../dist/tailwind.config.cjs");

module.exports = {
content: [
"_site/**/*.html"
"_includes/**/*.njk"
],
darkMode: 'media',
variants: {},
Expand Down
Binary file removed documentation/uploads/uws2.png
Binary file not shown.

0 comments on commit a930c2b

Please sign in to comment.