diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 91fe254..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,66 +0,0 @@ -version: 2.1 -commands: - build: - steps: - - checkout - - run: - name: update-npm - command: npm install -g npm@8 - - run: - name: install-npm-packages - command: npm install - - run: - name: install-pandoc - command: | - wget -P /tmp https://github.com/jgm/pandoc/releases/download/2.9.2/pandoc-2.9.2-1-amd64.deb - sudo dpkg -i /tmp/pandoc-2.9.2-1-amd64.deb - sudo apt-get update - sudo apt-get install texlive-latex-base - sudo apt-get install texlive-fonts-recommended - sudo apt-get install texlive-fonts-extra - - run: - name: build-static-site - command: npm run build && npm run after-build - deploy-prod: - steps: - - build - - run: - name: deploy-gh-pages - command: | - find . -maxdepth 1 ! -name dist ! -name . ! -name .git | xargs rm -rf - mv dist/* . - git config user.email "ci-build@zinc.coop" - git config user.name "ci-build" - git checkout -B gh-pages - git add -A - git commit --allow-empty -m "Deploy to GitHub pages [ci skip]" - git push --force --quiet https://${GITHUB_ACCESS_TOKEN}@github.com/zinc-collective/www.zinc.coop.git gh-pages > /dev/null 2>&1 - -executors: - docker-executor: - docker: - - image: cimg/node:17.9.0 - -jobs: - build: - executor: docker-executor - steps: - - build - - build-deploy: - executor: docker-executor - steps: - - build - - deploy-prod - -workflows: - build-deploy: - jobs: - - build: - filters: - branches: - ignore: development - - build-deploy: - filters: - branches: - only: development diff --git a/.eleventy.js b/.eleventy.js deleted file mode 100644 index a7cecfa..0000000 --- a/.eleventy.js +++ /dev/null @@ -1,30 +0,0 @@ -const markdownIt = require("markdown-it"); - -module.exports = function(config) { - // A useful way to reference the context we are runing eleventy in - let env = process.env.ELEVENTY_ENV; - - // Layout aliases can make templates more portable - config.addLayoutAlias('default', 'layouts/default.njk'); - config.addPassthroughCopy("src/CNAME"); - config.addPassthroughCopy("src/**/*.pdf"); - config.addPassthroughCopy("src/**/*.jpg") - config.addPassthroughCopy("src/favicons") - - config.addWatchTarget("./src/styles/"); - - config.addPairedNunjucksShortcode("markdown", (content) => { - return new markdownIt({ html: true }).render(content); - }); - - return { - dir: { - input: "src", - output: "dist", - data: `_data/${env}` - }, - templateFormats: ["html", "njk", "md", "11ty.js"], - htmlTemplateEngine: "njk", - markdownTemplateEngine: "njk", - } -} diff --git a/.env.example b/.env.example deleted file mode 100644 index 42613ec..0000000 --- a/.env.example +++ /dev/null @@ -1,12 +0,0 @@ -# This is only necessary if you intend to smoke test the Stripe pages. -# You can prefix your commands with `dotenv` using if you have -# [dotenv-cli](https://www.npmjs.com/package/dotenv-cli) -# or [dotenv](https://github.com/bkeepers/dotenv) installed - -# For local development, get these from https://dashboard.stripe.com/test/apikeys -# For production, get them from https://dashboard.stripe.com/apikeys -STRIPE_PUBLISHABLE_API_KEY=PLACE_STRIPE_PUBLISHABLE_KEY_HERE - -# For local development, get these from https://dashboard.stripe.com/test/products -# For production, get them from https://dashboard.stripe.com/products -CONVENE_PRICE_ID=PLACE_PRICE_ID_FOR_CONVENE_HERE \ No newline at end of file diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 12247f3..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules -dist -*.DS_Store -.env \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 5b84e3d..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "ltex.ignoreRuleInSentence": [ - { - "rule": "KEY_WORDS", - "sentence": "^\\QThe key words \"MUST\", \"MUST NOT\", \"REQUIRED\", \"SHALL\", \"SHALL NOT\", \"SHOULD\", \"SHOULD NOT\", \"RECOMMENDED\", \"MAY\", and \"OPTIONAL\" in this document are to be interpreted as described in RFC 2119.\\E$" - } - ], - "ltex.en-US.disabledRules": [ - "EN_QUOTES" - ] -} \ No newline at end of file diff --git a/src/CNAME b/CNAME similarity index 100% rename from src/CNAME rename to CNAME diff --git a/README.md b/README.md deleted file mode 100644 index 13ce1a2..0000000 --- a/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# www.zinc.coop - -This is the core website for Zinc Collective LLC. -It serves primarily as a public repository of information about the cooperative. - -## Contributing - -1. Clone the repository -1. Read the contents of `bin/setup`, make sure you understand it; and then run it. -1. Run `npm run dev` to start development server. -1. Make your desired changes to the HTML files. -1. Make [a commit that explains your motivation for the change you made](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). -1. Submit a patch! - -## Quick technology tour - -This site uses: -* [Eleventy](https://www.11ty.dev/) as its static site generator -* [Nunjucks](https://mozilla.github.io/nunjucks/templating.html) as the templating language -* [Tailwind UI](https://tailwindui.com/components) as our CSS and UI framework -* [pandoc](https://pandoc.org/) to compile some parts of the site into PDF - -## Design - -We rely on [TailwindUI] for our components, and have a [draft sitemap] we're working from. Password for Tailwind is in the contributor password vault. - -[TailwindUI]: https://tailwindui.com/components -[draft sitemap]: https://www.figma.com/file/CohXLEIN3RXd0Zc8buIV8A/Zinc?node-id=0%3A756 - -## Deploying - -Changes merged into the `development` branch are auto-deployed to [https://www.zinc.coop]. diff --git a/src/_includes/partials/footer.njk b/a11y.html similarity index 51% rename from src/_includes/partials/footer.njk rename to a11y.html index 1d27de8..bbf69bb 100644 --- a/src/_includes/partials/footer.njk +++ b/a11y.html @@ -1,4 +1,88 @@ -