diff --git a/.gitignore b/.gitignore
index 00cbbdf..73eae91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,59 +1 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# Bower dependency directory (https://bower.io/)
-bower_components
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules/
-jspm_packages/
-
-# Typescript v1 declaration files
-typings/
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
-# Yarn Integrity file
-.yarn-integrity
-
-# dotenv environment variables file
-.env
-
+exampleSite/public/
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 7b9c913..ae21e33 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,7 @@
MIT License
-Copyright (c) 2017 Heydon Pickering
+Copyright (c) 2017 Heydon Pickering
+Copyright (c) 2019 Zachary Betz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 7af07fc..80049c6 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,60 @@
-# Cupper
+# Cupper Hugo Theme
-**Cupper** is a documentation builder for inclusive designers, and those who want to be inclusive designers. Build accessible pattern libraries and all sorts of other docs.
+An accessibility-friendly Hugo theme, ported from the original [Cupper](https://github.com/ThePacielloGroup/cupper) project.
-* [Documentation →](https://thepaciellogroup.github.io/cupper)
-* [Contributing →](https://github.com/ThePacielloGroup/cupper/blob/master/CONTRIBUTING.md)
+## Table of contents
-**IMPORTANT NOTE:** **Cupper** was originally named **Infusion**. If you forked this repository before the name change, you may experience update troubles (when using `npm run update`). To remedy this, please manually rename your **themes → infusion** folder to **themes → cupper** and reference `cupper` as the theme in your `config.toml`, before running the command.
+TODO
+
+## Demo
+
+Dev demo, immediate updates: TODO
+
+Hugo Themes demo, weekly-ish updates: TODO
+
+## Installation
+
+From the root of your site:
+
+```
+git submodule add https://github.com/zwbetz-gh/cupper-hugo-theme.git themes/cupper
+```
+
+## Updating
+
+From the root of your site:
+
+```
+git submodule update --remote --merge
+```
+
+## Run example site
+
+From the root of `themes/cupper/exampleSite`:
+
+```
+hugo server --themesDir ../..
+```
+
+## Configuration
+
+Copy the `config.toml` or `config.yaml` from the `exampleSite` TODO, then edit as desired.
+
+## Typography
+
+TODO
+
+## Favicons
+
+TODO link RealFaviconGenerator and give steps
+
+## Credits
+
+TODO
+
+- Cupper and Heydon Pickering http://www.heydonworks.com
+- [Netlify](https://www.netlify.com/) for deploys
+- [Visual Studio Code](https://code.visualstudio.com/) for text editing
+- [Fedora](https://getfedora.org/), [Xfce](https://www.xfce.org/), and [VirtualBox](https://www.virtualbox.org/) for development environment
+- [gh-md-toc](https://github.com/ekalinin/github-markdown-toc) for table of contents generation
+- [befunky](https://www.befunky.com/) for screenshot editing
diff --git a/themes/cupper/archetypes/default.md b/archetypes/default.md
similarity index 100%
rename from themes/cupper/archetypes/default.md
rename to archetypes/default.md
diff --git a/themes/cupper/archetypes/patterns.md b/archetypes/patterns.md
similarity index 100%
rename from themes/cupper/archetypes/patterns.md
rename to archetypes/patterns.md
diff --git a/themes/cupper/archetypes/print-version.md b/archetypes/print-version.md
similarity index 100%
rename from themes/cupper/archetypes/print-version.md
rename to archetypes/print-version.md
diff --git a/config.toml b/config.toml
deleted file mode 100644
index aa344d4..0000000
--- a/config.toml
+++ /dev/null
@@ -1,10 +0,0 @@
-languageCode = "en-us"
-title = "Cupper"
-baseURL = "https://thepaciellogroup.github.io/cupper/"
-canonifyURLs = true
-theme = "cupper"
-publishDir = "docs"
-
-[params]
- description = "Documentation for the **Cupper** documentation builder, built with **Cupper** itself."
- codePenUser = "Heydon"
diff --git a/themes/cupper/data/principles.json b/data/principles.json
similarity index 100%
rename from themes/cupper/data/principles.json
rename to data/principles.json
diff --git a/themes/cupper/data/wcag.json b/data/wcag.json
similarity index 100%
rename from themes/cupper/data/wcag.json
rename to data/wcag.json
diff --git a/docs/404.html b/docs/404.html
deleted file mode 100644
index 7f8c469..0000000
--- a/docs/404.html
+++ /dev/null
@@ -1,446 +0,0 @@
-
-
-
- Documentation for the Cupper documentation builder, built with Cupper itself.
-
-
- Print version
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/index.xml b/docs/index.xml
deleted file mode 100644
index 4aadabe..0000000
--- a/docs/index.xml
+++ /dev/null
@@ -1,248 +0,0 @@
-
-
-
- The Cupper Documentation Builder on Cupper
- https://thepaciellogroup.github.io/cupper/
- Recent content in The Cupper Documentation Builder on Cupper
- Hugo -- gohugo.io
- en-us
- Mon, 26 Jun 2017 18:27:58 +0100
-
-
-
-
-
- Code blocks
- https://thepaciellogroup.github.io/cupper/patterns/coding/code-blocks/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/code-blocks/
- Markdown already supports code samples both inline (using single backticks like `some code here`) and in blocks. Cupper will syntax highlight HTML, CSS, and JavaScript if you provide the correct language in the formulation of the block.
-So, this…
-```html <button aria-pressed="false"toggle me</button ``` … will result in this:
-<button aria-pressed="false">toggle me</button> Note that the syntax highlighting uses a greyscale theme. Cupper is careful not to use color as part of its own design, because these colors may clash with those of the design being illustrated and discussed.
-
-
-
- Installation
- https://thepaciellogroup.github.io/cupper/patterns/installation/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/installation/
- Cupper is built using the static site engine, Hugo, and NPM. The codebase is available to download on Github. Let’s get everything installed step-by-step.
-Install Hugo First you need to install Hugo globally.
-OSX users If you are a Mac user and have Homebrew on your system, installing Hugo is simple:
-brew install hugo Alternatively, you can manually install Hugo from a package. You can verify the installation was successful by typing:
-
-
-
- Project structure
- https://thepaciellogroup.github.io/cupper/patterns/writing/project-structure/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/project-structure/
- Before you can set about making documentation, you need to know where everything goes. The simplest folder structure looks like this:
- content _index.md print-version.md patterns name-of-my-pattern.md name-of-my-other-pattern.md /content - This is where all of your content lives. You won’t need to visit any other folders very frequently. _index.md — This is the content file for your home page. print-version.md — This is a placeholder for the single-page / print-friendly version of you library.
-
-
-
- Demo embedding
- https://thepaciellogroup.github.io/cupper/patterns/coding/demo-embedding/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/demo-embedding/
- Sometimes just pictures of the pattern you’re documenting aren’t enough. Interactive patterns benefit from live demos, so that readers can test their functionality.
-CodePen Cupper offers a couple of ways to do this. The first is by embedding CodePen demos into the content. The codePen shortcode takes just one argument: the codePen’s ID.
-{{% codePen VpVNKW %}} This will embed the identified codePen into the content wherever you placed the shortcode, with the result view showing by default:
-
-
-
- Setup
- https://thepaciellogroup.github.io/cupper/patterns/setup/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/setup/
- By now, you should have followed the Installation instructions. You should have Hugo and Node installed, and a local copy of a forked version of Cupper. You should also have run npm install in the root of that codebase.
-“Cleaning” the content folder Before you can start writing documentation, there are a few things still to do in order to get set up. At the moment, your version of Cupper is a facsimile of the original, containing all the content you’re reading right now.
-
-
-
- Markdown & metadata
- https://thepaciellogroup.github.io/cupper/patterns/writing/markdown-and-metadata/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/markdown-and-metadata/
- In Cupper everything is documented using markdown, as a “pattern”. To create a new pattern file, just add a file with the .md extension to the content/patterns folder. It’s recommended you use “kebab case” to name the file (words separated by hyphens). For example, a pattern with the title “Menu button” should probably have the filename menu-button. Then you get a nice clean URL: username.github.io/your-library/patterns/menu-button.
-If you’re not familiar with writing markdown, there are a number of tutorials available.
-
-
-
- Serving
- https://thepaciellogroup.github.io/cupper/patterns/serving/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/serving/
- Serving locally While you’re creating content for your project, you’ll probably want to see what the finished product looks like. Fortunately, Cupper is easy to serve locally using the serve command:
-npm run serve This will serve your working project from localhost:1313. Whenever you make changes to your files, the site will automatically rebuild. No need to refresh the web page!
-Publishing on Github Pages Cupper creates a /docs folder containing the latest version of your site whenever you do an npm run build or a git commit.
-
-
-
- Writing inline demos
- https://thepaciellogroup.github.io/cupper/patterns/coding/writing-inline-demos/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/writing-inline-demos/
- There are some issues with Demo embedding, like the embeds not working offline. They also come with their own branding, which will clash with the pattern you’re trying to illustrate.
-Cupper offers another option: a special demo shortcode that allows you to write HTML, CSS, and JavaScript directly into the markdown file. The outputted demo is encapsulated using Shadow DOM, so you don’t have to worry about broken styles and global JS.
-
-
-
- Printing
- https://thepaciellogroup.github.io/cupper/patterns/printing/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/printing/
- Cupper’s output site includes a one-page Print version of the generated library, available at /print-version. So, if your library base URL is https://yourName.github.io/your-library, you can print the whole library — to PDF if wanted — from the following address:
-https://yourName.github.io/your-library/print-version Print styles are also provided for individual pattern pages so, if you wanted to print off a single pattern document, you can!
-
-
-
-
- Updating Cupper
- https://thepaciellogroup.github.io/cupper/patterns/updating/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/updating/
- The core of Cupper’s functionality is in its Hugo theme, also called Cupper. This is found in the theme folder.
- content docs lib snippets static themes cupper Do not “hack the core”. If you have any issues with Cupper, please report them to the Cupper Github repository and they will be dealt with ASAP.
-Cupper is undergoing constant development, so keep an eye out for new releases.
-
-
-
- Expandable sections
- https://thepaciellogroup.github.io/cupper/patterns/writing/expandable-sections/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/expandable-sections/
- In some cases, where there is a lot of content, it’s helpful to collapse certain sections. That way, readers get an overview of what’s in the content and can choose where to focus in. Cupper provides a shortcode method for creating expandable sections which generates accessible markup using aria-expanded.
-The expandable shortcode takes three parameters:
- label — This is the label for the the section heading. level — This is the heading level (e.
-
-
-
- Print version
- https://thepaciellogroup.github.io/cupper/print-version/
- Sat, 29 Jul 2017 22:48:43 +0100
-
- https://thepaciellogroup.github.io/cupper/print-version/
- You don’t want to edit this file :-)
-
-
-
- Color palettes
- https://thepaciellogroup.github.io/cupper/patterns/coding/color-palettes/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/color-palettes/
- There’s no reason why your Cupper-powered pattern library has to be all about functionality. You can include style guide-like information such as color palettes too. The colors shortcode makes it easy to exhibit colors and their values together. Just supply a comma-separated list of CSS color values.
-{{% colors "#111111, #cccccc, #ffffff" %}} The result is a one row strip showing each color supplied in order. The colors for Cupper are greyscale:
-
-
-
- Command line
- https://thepaciellogroup.github.io/cupper/patterns/coding/command-line/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/command-line/
- Your pattern documentation may need to include commands for installing packages or using CLIs. Cupper offers the cmd shortcode for making code blocks look like terminal commands.
-Here’s how you write it:
-{{<cmd}} npm run start {{</cmd}} And here’s how it looks:
-npm run start The cmd shortcode currently only supports single commands. If you want to show multiple, successive commands use separate cmd blocks.
-
-
-
-
- File trees
- https://thepaciellogroup.github.io/cupper/patterns/coding/file-trees/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/file-trees/
- Representing folder/file structures is simple and accessible in Cupper. Which is just as well, because some components may need to conform to a certain folder structure.
-The file tree is described using a markdown nested list structure:
-{{% fileTree %}} * Level 1 folder * Level 2 file * Level 2 folder * Level 3 file * Level 3 folder * Level 4 file * Level 3 folder * Level 4 file * Level 4 file * Level 3 file * Level 2 folder * Level 3 file * Level 3 file * Level 3 file * Level 2 file * Level 1 file {{% /fileTree %}} This is drawn in the following fashion, but preserves the underlying nested list structure for assistive technologies such as screen readers:
-
-
-
- Including images
- https://thepaciellogroup.github.io/cupper/patterns/media/including-images/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/media/including-images/
- From time to time, you’ll be wanting to include images illustrating the documented pattern in hand. Images live in the static folder, which is a sibling of the /content folder you’ll be mostly working in.
- content static images logo.png menu-button.gif When you first make a copy of Cupper, Cupper’s own logo will be included. You should replace this with your own company or project logo.
-
-
-
- Including videos
- https://thepaciellogroup.github.io/cupper/patterns/media/including-videos/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/media/including-videos/
- Cupper has a lot of its own shortcodes, but you can still use Hugo’s built in shortcodes. These include a simple shortcode for including YouTube videos in your content. The shortcode takes just one parameter — the video’s id.
-{{<youtube w7Ft2ymGmfc}}
-
-
-
- Notes & warnings
- https://thepaciellogroup.github.io/cupper/patterns/writing/notes-and-warnings/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/notes-and-warnings/
- Cupper acknowledges that simple markdown is limiting when it comes to writing compelling documentation, so it provides a number of “shortcodes”. Shortcodes offer a simple syntax for including rich content. For example, Cupper provides shortcodes for including notes and warnings.
-Notes You may wish to pick out some content in your pattern’s documentation as a note — an aside to the main thrust of the pattern’s description. This is possible using the following syntax:
-
-
-
- References
- https://thepaciellogroup.github.io/cupper/patterns/writing/references/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/references/
- Cross-references Cupper identifies the main content files in your documentation as patterns, and they’re kept in the content/ patterns folder. It’s easy to cross-reference patterns using the pattern shortcode. For example, I can reference the Notes & warnings pattern. Here’s what the markdown looks like, including the shortcode:
-I can reference the {{% pattern "Notes & warnings" %}} pattern here. This saves you having to worry about pathing and decorates the generated link with a bookmark icon, identifying the link as a pattern reference visually.
-
-
-
- Snippets
- https://thepaciellogroup.github.io/cupper/patterns/writing/snippets/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/snippets/
- A lot of the time, your larger documentation patterns will share some common techniques and utilities. For this reason, Cupper lets you save snippets of markdown in a snippets folder, alongside the main content folder.
-The example visually-hidden.md snippet describes the CSS needed to create content that is visually hidden but still available to screen readers. Since this is a technique/utility you are likely to use often, it’s nice to be able to just drop a snippet into your markdown content.
-
-
-
- Tables of contents
- https://thepaciellogroup.github.io/cupper/patterns/writing/tables-of-contents/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/tables-of-contents/
- Pattern pages in Cupper that have two or more subheadings (<h2>s) automatically get a table of contents: a list of links to the main subsections for the page. This feature is made accessible as a navigation region with the “Table of contents” label and uses an ordered list. The table of contents markup for the Setup page looks something like this:
-<nav class="toc" aria-labelledby="toc-heading"> <h2 id="toc-heading">Table of contents</h2> <ol> <li> <a href="#cleaning-the-content-folder">“Cleaning” the content folder</a> </li> <li> <a href="#the-setup-command">The setup command</a> </li> <li> <a href="#the-config-file">The config file</a> </li> <li> <a href="#including-a-logo">Including a logo</a> </li> </ol> </nav> Tables of content are a neat way to break down the content of the page and give users a navigable overview.
-
-
-
- Tested using...
- https://thepaciellogroup.github.io/cupper/patterns/coding/tested/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/tested/
- When you’re an inclusive designer, it’s pertinent to do some testing. Following specs is one thing, but you need to verify that your component works okay for users.
-Cupper provided a tested shortcode that lets you show which browsers and assistive technologies you’ve tried your design out in. Here’s an example. Note the commas and “+” signs.
-{{% tested using="Firefox + JAWS, Chrome, Safari iOS + Voiceover, Edge" %}} This outputs:
-
-
-
-
\ No newline at end of file
diff --git a/docs/manifest.json b/docs/manifest.json
deleted file mode 100644
index 6665bed..0000000
--- a/docs/manifest.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "name": "Cupper Pattern Library Docs",
- "short_name": "Cupper Docs",
- "icons": [
- {
- "src": "images/android-icon-36x36.png",
- "sizes": "36x36",
- "type": "image\/png",
- "density": "0.75"
- },
- {
- "src": "images/android-icon-48x48.png",
- "sizes": "48x48",
- "type": "image\/png",
- "density": "1.0"
- },
- {
- "src": "images/android-icon-72x72.png",
- "sizes": "72x72",
- "type": "image\/png",
- "density": "1.5"
- },
- {
- "src": "images/android-icon-96x96.png",
- "sizes": "96x96",
- "type": "image\/png",
- "density": "2.0"
- },
- {
- "src": "images/android-icon-144x144.png",
- "sizes": "144x144",
- "type": "image\/png",
- "density": "3.0"
- },
- {
- "src": "images/android-icon-192x192.png",
- "sizes": "192x192",
- "type": "image\/png",
- "density": "4.0"
- },
- {
- "src": "images/android-icon-512x512.png",
- "sizes": "512x512",
- "type": "image\/png",
- "density": "4.0"
- }
-],
- "start_url": "index.html",
- "display": "standalone",
- "background_color": "#fefefe",
- "theme_color": "#111"
-}
diff --git a/docs/patterns/coding/code-blocks/index.html b/docs/patterns/coding/code-blocks/index.html
deleted file mode 100644
index 526cc55..0000000
--- a/docs/patterns/coding/code-blocks/index.html
+++ /dev/null
@@ -1,564 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Code blocks | Cupper
-
-
-
-
-
-
- skip to content
-
-
-
-
- Documentation for the Cupper documentation builder, built with Cupper itself.
-
-
- Print version
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/patterns/coding/index.xml b/docs/patterns/coding/index.xml
deleted file mode 100644
index c095e24..0000000
--- a/docs/patterns/coding/index.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
- Coding on Cupper
- https://thepaciellogroup.github.io/cupper/patterns/coding/
- Recent content in Coding on Cupper
- Hugo -- gohugo.io
- en-us
-
-
-
-
-
- Code blocks
- https://thepaciellogroup.github.io/cupper/patterns/coding/code-blocks/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/code-blocks/
- Markdown already supports code samples both inline (using single backticks like `some code here`) and in blocks. Cupper will syntax highlight HTML, CSS, and JavaScript if you provide the correct language in the formulation of the block.
-So, this…
-```html <button aria-pressed="false"toggle me</button ``` … will result in this:
-<button aria-pressed="false">toggle me</button> Note that the syntax highlighting uses a greyscale theme. Cupper is careful not to use color as part of its own design, because these colors may clash with those of the design being illustrated and discussed.
-
-
-
- Demo embedding
- https://thepaciellogroup.github.io/cupper/patterns/coding/demo-embedding/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/demo-embedding/
- Sometimes just pictures of the pattern you’re documenting aren’t enough. Interactive patterns benefit from live demos, so that readers can test their functionality.
-CodePen Cupper offers a couple of ways to do this. The first is by embedding CodePen demos into the content. The codePen shortcode takes just one argument: the codePen’s ID.
-{{% codePen VpVNKW %}} This will embed the identified codePen into the content wherever you placed the shortcode, with the result view showing by default:
-
-
-
- Writing inline demos
- https://thepaciellogroup.github.io/cupper/patterns/coding/writing-inline-demos/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/writing-inline-demos/
- There are some issues with Demo embedding, like the embeds not working offline. They also come with their own branding, which will clash with the pattern you’re trying to illustrate.
-Cupper offers another option: a special demo shortcode that allows you to write HTML, CSS, and JavaScript directly into the markdown file. The outputted demo is encapsulated using Shadow DOM, so you don’t have to worry about broken styles and global JS.
-
-
-
- Color palettes
- https://thepaciellogroup.github.io/cupper/patterns/coding/color-palettes/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/color-palettes/
- There’s no reason why your Cupper-powered pattern library has to be all about functionality. You can include style guide-like information such as color palettes too. The colors shortcode makes it easy to exhibit colors and their values together. Just supply a comma-separated list of CSS color values.
-{{% colors "#111111, #cccccc, #ffffff" %}} The result is a one row strip showing each color supplied in order. The colors for Cupper are greyscale:
-
-
-
- Command line
- https://thepaciellogroup.github.io/cupper/patterns/coding/command-line/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/command-line/
- Your pattern documentation may need to include commands for installing packages or using CLIs. Cupper offers the cmd shortcode for making code blocks look like terminal commands.
-Here’s how you write it:
-{{<cmd}} npm run start {{</cmd}} And here’s how it looks:
-npm run start The cmd shortcode currently only supports single commands. If you want to show multiple, successive commands use separate cmd blocks.
-
-
-
-
- File trees
- https://thepaciellogroup.github.io/cupper/patterns/coding/file-trees/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/file-trees/
- Representing folder/file structures is simple and accessible in Cupper. Which is just as well, because some components may need to conform to a certain folder structure.
-The file tree is described using a markdown nested list structure:
-{{% fileTree %}} * Level 1 folder * Level 2 file * Level 2 folder * Level 3 file * Level 3 folder * Level 4 file * Level 3 folder * Level 4 file * Level 4 file * Level 3 file * Level 2 folder * Level 3 file * Level 3 file * Level 3 file * Level 2 file * Level 1 file {{% /fileTree %}} This is drawn in the following fashion, but preserves the underlying nested list structure for assistive technologies such as screen readers:
-
-
-
- Tested using...
- https://thepaciellogroup.github.io/cupper/patterns/coding/tested/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/tested/
- When you’re an inclusive designer, it’s pertinent to do some testing. Following specs is one thing, but you need to verify that your component works okay for users.
-Cupper provided a tested shortcode that lets you show which browsers and assistive technologies you’ve tried your design out in. Here’s an example. Note the commas and “+” signs.
-{{% tested using="Firefox + JAWS, Chrome, Safari iOS + Voiceover, Edge" %}} This outputs:
-
-
-
-
\ No newline at end of file
diff --git a/docs/patterns/coding/tested/index.html b/docs/patterns/coding/tested/index.html
deleted file mode 100644
index 478ee9f..0000000
--- a/docs/patterns/coding/tested/index.html
+++ /dev/null
@@ -1,506 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tested using... | Cupper
-
-
-
-
-
-
- skip to content
-
-
-
-
- Documentation for the Cupper documentation builder, built with Cupper itself.
-
-
- Print version
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/patterns/index.xml b/docs/patterns/index.xml
deleted file mode 100644
index fa07ffe..0000000
--- a/docs/patterns/index.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
- Patterns on Cupper
- https://thepaciellogroup.github.io/cupper/patterns/
- Recent content in Patterns on Cupper
- Hugo -- gohugo.io
- en-us
-
-
-
-
-
- Installation
- https://thepaciellogroup.github.io/cupper/patterns/installation/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/installation/
- Cupper is built using the static site engine, Hugo, and NPM. The codebase is available to download on Github. Let’s get everything installed step-by-step.
-Install Hugo First you need to install Hugo globally.
-OSX users If you are a Mac user and have Homebrew on your system, installing Hugo is simple:
-brew install hugo Alternatively, you can manually install Hugo from a package. You can verify the installation was successful by typing:
-
-
-
- Setup
- https://thepaciellogroup.github.io/cupper/patterns/setup/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/setup/
- By now, you should have followed the Installation instructions. You should have Hugo and Node installed, and a local copy of a forked version of Cupper. You should also have run npm install in the root of that codebase.
-“Cleaning” the content folder Before you can start writing documentation, there are a few things still to do in order to get set up. At the moment, your version of Cupper is a facsimile of the original, containing all the content you’re reading right now.
-
-
-
- Serving
- https://thepaciellogroup.github.io/cupper/patterns/serving/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/serving/
- Serving locally While you’re creating content for your project, you’ll probably want to see what the finished product looks like. Fortunately, Cupper is easy to serve locally using the serve command:
-npm run serve This will serve your working project from localhost:1313. Whenever you make changes to your files, the site will automatically rebuild. No need to refresh the web page!
-Publishing on Github Pages Cupper creates a /docs folder containing the latest version of your site whenever you do an npm run build or a git commit.
-
-
-
- Printing
- https://thepaciellogroup.github.io/cupper/patterns/printing/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/printing/
- Cupper’s output site includes a one-page Print version of the generated library, available at /print-version. So, if your library base URL is https://yourName.github.io/your-library, you can print the whole library — to PDF if wanted — from the following address:
-https://yourName.github.io/your-library/print-version Print styles are also provided for individual pattern pages so, if you wanted to print off a single pattern document, you can!
-
-
-
-
- Updating Cupper
- https://thepaciellogroup.github.io/cupper/patterns/updating/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/updating/
- The core of Cupper’s functionality is in its Hugo theme, also called Cupper. This is found in the theme folder.
- content docs lib snippets static themes cupper Do not “hack the core”. If you have any issues with Cupper, please report them to the Cupper Github repository and they will be dealt with ASAP.
-Cupper is undergoing constant development, so keep an eye out for new releases.
-
-
-
-
\ No newline at end of file
diff --git a/docs/patterns/installation/index.html b/docs/patterns/installation/index.html
deleted file mode 100644
index 4744cb8..0000000
--- a/docs/patterns/installation/index.html
+++ /dev/null
@@ -1,509 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Installation | Cupper
-
-
-
-
-
-
- skip to content
-
-
-
-
- Documentation for the Cupper documentation builder, built with Cupper itself.
-
-
- Print version
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/patterns/media/index.xml b/docs/patterns/media/index.xml
deleted file mode 100644
index 3f93555..0000000
--- a/docs/patterns/media/index.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
- Media on Cupper
- https://thepaciellogroup.github.io/cupper/patterns/media/
- Recent content in Media on Cupper
- Hugo -- gohugo.io
- en-us
-
-
-
-
-
- Including images
- https://thepaciellogroup.github.io/cupper/patterns/media/including-images/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/media/including-images/
- From time to time, you’ll be wanting to include images illustrating the documented pattern in hand. Images live in the static folder, which is a sibling of the /content folder you’ll be mostly working in.
- content static images logo.png menu-button.gif When you first make a copy of Cupper, Cupper’s own logo will be included. You should replace this with your own company or project logo.
-
-
-
- Including videos
- https://thepaciellogroup.github.io/cupper/patterns/media/including-videos/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/media/including-videos/
- Cupper has a lot of its own shortcodes, but you can still use Hugo’s built in shortcodes. These include a simple shortcode for including YouTube videos in your content. The shortcode takes just one parameter — the video’s id.
-{{<youtube w7Ft2ymGmfc}}
-
-
-
-
\ No newline at end of file
diff --git a/docs/patterns/printing/index.html b/docs/patterns/printing/index.html
deleted file mode 100644
index 1b91f45..0000000
--- a/docs/patterns/printing/index.html
+++ /dev/null
@@ -1,431 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Printing | Cupper
-
-
-
-
-
-
- skip to content
-
-
-
-
- Documentation for the Cupper documentation builder, built with Cupper itself.
-
-
- Print version
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/patterns/writing/index.xml b/docs/patterns/writing/index.xml
deleted file mode 100644
index 4ebdbdf..0000000
--- a/docs/patterns/writing/index.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
- Writing on Cupper
- https://thepaciellogroup.github.io/cupper/patterns/writing/
- Recent content in Writing on Cupper
- Hugo -- gohugo.io
- en-us
-
-
-
-
-
- Project structure
- https://thepaciellogroup.github.io/cupper/patterns/writing/project-structure/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/project-structure/
- Before you can set about making documentation, you need to know where everything goes. The simplest folder structure looks like this:
- content _index.md print-version.md patterns name-of-my-pattern.md name-of-my-other-pattern.md /content - This is where all of your content lives. You won’t need to visit any other folders very frequently. _index.md — This is the content file for your home page. print-version.md — This is a placeholder for the single-page / print-friendly version of you library.
-
-
-
- Markdown & metadata
- https://thepaciellogroup.github.io/cupper/patterns/writing/markdown-and-metadata/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/markdown-and-metadata/
- In Cupper everything is documented using markdown, as a “pattern”. To create a new pattern file, just add a file with the .md extension to the content/patterns folder. It’s recommended you use “kebab case” to name the file (words separated by hyphens). For example, a pattern with the title “Menu button” should probably have the filename menu-button. Then you get a nice clean URL: username.github.io/your-library/patterns/menu-button.
-If you’re not familiar with writing markdown, there are a number of tutorials available.
-
-
-
- Expandable sections
- https://thepaciellogroup.github.io/cupper/patterns/writing/expandable-sections/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/expandable-sections/
- In some cases, where there is a lot of content, it’s helpful to collapse certain sections. That way, readers get an overview of what’s in the content and can choose where to focus in. Cupper provides a shortcode method for creating expandable sections which generates accessible markup using aria-expanded.
-The expandable shortcode takes three parameters:
- label — This is the label for the the section heading. level — This is the heading level (e.
-
-
-
- Notes & warnings
- https://thepaciellogroup.github.io/cupper/patterns/writing/notes-and-warnings/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/notes-and-warnings/
- Cupper acknowledges that simple markdown is limiting when it comes to writing compelling documentation, so it provides a number of “shortcodes”. Shortcodes offer a simple syntax for including rich content. For example, Cupper provides shortcodes for including notes and warnings.
-Notes You may wish to pick out some content in your pattern’s documentation as a note — an aside to the main thrust of the pattern’s description. This is possible using the following syntax:
-
-
-
- References
- https://thepaciellogroup.github.io/cupper/patterns/writing/references/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/references/
- Cross-references Cupper identifies the main content files in your documentation as patterns, and they’re kept in the content/ patterns folder. It’s easy to cross-reference patterns using the pattern shortcode. For example, I can reference the Notes & warnings pattern. Here’s what the markdown looks like, including the shortcode:
-I can reference the {{% pattern "Notes & warnings" %}} pattern here. This saves you having to worry about pathing and decorates the generated link with a bookmark icon, identifying the link as a pattern reference visually.
-
-
-
- Snippets
- https://thepaciellogroup.github.io/cupper/patterns/writing/snippets/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/snippets/
- A lot of the time, your larger documentation patterns will share some common techniques and utilities. For this reason, Cupper lets you save snippets of markdown in a snippets folder, alongside the main content folder.
-The example visually-hidden.md snippet describes the CSS needed to create content that is visually hidden but still available to screen readers. Since this is a technique/utility you are likely to use often, it’s nice to be able to just drop a snippet into your markdown content.
-
-
-
- Tables of contents
- https://thepaciellogroup.github.io/cupper/patterns/writing/tables-of-contents/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/tables-of-contents/
- Pattern pages in Cupper that have two or more subheadings (<h2>s) automatically get a table of contents: a list of links to the main subsections for the page. This feature is made accessible as a navigation region with the “Table of contents” label and uses an ordered list. The table of contents markup for the Setup page looks something like this:
-<nav class="toc" aria-labelledby="toc-heading"> <h2 id="toc-heading">Table of contents</h2> <ol> <li> <a href="#cleaning-the-content-folder">“Cleaning” the content folder</a> </li> <li> <a href="#the-setup-command">The setup command</a> </li> <li> <a href="#the-config-file">The config file</a> </li> <li> <a href="#including-a-logo">Including a logo</a> </li> </ol> </nav> Tables of content are a neat way to break down the content of the page and give users a navigable overview.
-
-
-
-
\ No newline at end of file
diff --git a/docs/patterns/writing/markdown-and-metadata/index.html b/docs/patterns/writing/markdown-and-metadata/index.html
deleted file mode 100644
index fa18847..0000000
--- a/docs/patterns/writing/markdown-and-metadata/index.html
+++ /dev/null
@@ -1,496 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Markdown & metadata | Cupper
-
-
-
-
-
-
- skip to content
-
-
-
-
-
-
-
-
-
diff --git a/docs/service-worker.js b/docs/service-worker.js
deleted file mode 100644
index 3e5bd30..0000000
--- a/docs/service-worker.js
+++ /dev/null
@@ -1,268 +0,0 @@
-/**
- * Copyright 2016 Google Inc. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
-*/
-
-// DO NOT EDIT THIS GENERATED OUTPUT DIRECTLY!
-// This file should be overwritten as part of your build process.
-// If you need to extend the behavior of the generated service worker, the best approach is to write
-// additional code and include it using the importScripts option:
-// https://github.com/GoogleChrome/sw-precache#importscripts-arraystring
-//
-// Alternatively, it's possible to make changes to the underlying template file and then use that as the
-// new base for generating output, via the templateFilePath option:
-// https://github.com/GoogleChrome/sw-precache#templatefilepath-string
-//
-// If you go that route, make sure that whenever you update your sw-precache dependency, you reconcile any
-// changes made to this original template file with your modified copy.
-
-// This generated service worker JavaScript will precache your site's resources.
-// The code needs to be saved in a .js file at the top-level of your site, and registered
-// from your pages in order to be used. See
-// https://github.com/googlechrome/sw-precache/blob/master/demo/app/js/service-worker-registration.js
-// for an example of how you can register this script and handle various service worker events.
-
-/* eslint-env worker, serviceworker */
-/* eslint-disable indent, no-unused-vars, no-multiple-empty-lines, max-nested-callbacks, space-before-function-paren, quotes, comma-spacing */
-'use strict';
-
-var precacheConfig = [["404.html","27161e9319153913027bd7dfea90de2e"],["browserconfig.xml","67c3113b1574fecc6015d56d774e1d38"],["categories/index.html","a53b1e02c5e3f622e2bc8ad5eec54e57"],["categories/index.xml","b7219ca118bac884b575439e179569e2"],["css/fonts/miriamlibre-bold.woff","96496f6f06535d25b3bcba876917ca35"],["css/fonts/miriamlibre-bold.woff2","668defa44d9a74dd709ce0c826a5eb11"],["css/images/arrow_effect.svg","1434d178461f70c16b77acb4bdbc51e3"],["css/images/icon-tick.svg","35d4d4728ea80d254508b2bca4109d70"],["css/images/stripe.svg","fa3f32a026b6a1bb04ee98d963432e15"],["css/prism.css","004029c8c70ed2bbaa5d9debcf14f8c7"],["css/styles.css","fa4d0c82a6e480aecc189bf5d87fa267"],["images/android-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/android-icon-192x192.png","4c07782e52e0ab714074e6d3d69dc3ec"],["images/android-icon-36x36.png","3b2cd8c925a66bf84c89b68bb30e5f62"],["images/android-icon-48x48.png","45dc386eea1d8a46216a8b6de9b156c6"],["images/android-icon-512x512.png","42d6b28cc7eb41810a5392c81368340a"],["images/android-icon-72x72.png","b04c64637efed2b04fa900ddfcbfe75d"],["images/android-icon-96x96.png","bd9c126a4d6baf7ce442122ce0e89e11"],["images/apple-icon-precomposed.png","478755b1c3e0d2c8aea975033cff9ac8"],["images/apple-icon.png","478755b1c3e0d2c8aea975033cff9ac8"],["images/apple-touch-icon-114x114.png","95804b2192b0cea406b54cb31345c47d"],["images/apple-touch-icon-120x120.png","b5da0625c9e876bdf9768875f7dd9cca"],["images/apple-touch-icon-144x144.png","976151c9ecd72311dc6024917292209d"],["images/apple-touch-icon-152x152.png","8bd6a2e592c1c8463b5205ba8436227e"],["images/apple-touch-icon-180x180.png","56a93f4271dea903196794095e9f9ccc"],["images/apple-touch-icon-57x57.png","977183ab3bfb98da8d79e025f1cb4946"],["images/apple-touch-icon-60x60.png","55e9e05103a9b472a52f4c572a73b2b2"],["images/apple-touch-icon-72x72.png","1ef87a2887baab846f2501beb27445ee"],["images/apple-touch-icon-76x76.png","769826cd7526df4db7f4ba1a820158bd"],["images/bad_design_system.png","9c0e87a34e7d842b0e2831dc947249aa"],["images/browser-chrome-android.svg","3100b2a9c5f0e34982c717fc2aa46d73"],["images/browser-chrome.svg","fa39b4be6727525330e928f582fbe80a"],["images/browser-edge.svg","9e8265ab8f6a701587a4271dd3aa6a73"],["images/browser-firefox-android.svg","452df7b9e83c70a07e8e03b4e8dab9c4"],["images/browser-firefox.svg","d3093eda664be3d0cc6d791e1386420f"],["images/browser-ie.svg","13e192cf2b3fe17e7049a49b7d085caa"],["images/browser-opera.svg","95d65630c9f7deef6a3098af8f5baf9f"],["images/browser-safari-ios.svg","f729e629ec998ec40d313495d7257741"],["images/browser-safari.svg","523ee9491f5a937b8975f4d23aa77f62"],["images/favicon-16x16.png","7a99c20d6c00babddd26d03607b8721d"],["images/favicon-32x32.png","129881474a1bf130027bff7a1e89febd"],["images/favicon-96x96.png","bd9c126a4d6baf7ce442122ce0e89e11"],["images/favicon.ico","81c46feedbfcc6c6dc9495e4fd5adfad"],["images/icon-info.svg","53a6c555ce41f818556c71ab0dfc533b"],["images/icon-tag.svg","f067bbbc072941b2a0335679300bfc6c"],["images/icon-warning.svg","2a4322abbee9aed694fadb50e98a1f61"],["images/logo.svg","41f1c1780c2c5efa41d64359dbd651bb"],["images/ms-icon-144x144.png","43e1f47f182b13d0dee15f510213e928"],["images/ms-icon-150x150.png","e73370837ab9060772a18d62aaacd0f0"],["images/ms-icon-310x310.png","8a7143516b929702e3309bb537a99c5c"],["images/ms-icon-70x70.png","d7c6e7368733d53b5f979546d5aa4fe9"],["images/open_in_desktop.png","e899d6679b011aa7b0e783683d90d99b"],["images/samsung_homescreen.jpg","4462178424f5ce79b5757748ba5f1ec4"],["images/serve_from_docs.png","15ae9eac3737a21593ebe00a9312bf9e"],["index.html","e045dffc6df13199949f10e4789609e9"],["index.xml","3607b9dfcc8b4de39e9b24d84e079e0b"],["js/dom-scripts.js","d1226c17a56c156113ee538031a0b6bf"],["js/prism.js","0c1fb8d3a69ee7c91dbf0f361ded7763"],["js/service-worker-registration.js","d60f01dc1393cbaaf4f7435339074d5e"],["manifest.json","381e6af4fc2816f9a137f1ef30c10ebd"],["patterns/coding/code-blocks/index.html","30e4e4cafccfc068b28f369b952225a2"],["patterns/coding/color-palettes/index.html","02d6a136bdda617ccea10bfdce73e9de"],["patterns/coding/command-line/index.html","be235322e7cce7dd73ba38838c505254"],["patterns/coding/demo-embedding/index.html","967a28d183c34de6e49bd8cf397db32e"],["patterns/coding/file-trees/index.html","a52c1705bf6e3a45721f5ca15b5d6ccc"],["patterns/coding/index.html","326e8de49357cb8f3f4e8f7ad3989746"],["patterns/coding/index.xml","bb560877223964ac60e0b9a1248a6d35"],["patterns/coding/tested/index.html","84049828961d923b6d5028bff54e97db"],["patterns/coding/writing-inline-demos/index.html","30d4f9fb64d039c6160ea41cf6d99699"],["patterns/index.html","fbc29e79051ca0e88d82cfb9f9802dbd"],["patterns/index.xml","d5858fce0b97eabfdd83c867eed1375b"],["patterns/installation/index.html","3c1c25eb7c5ec2f6a4192dc6c90188de"],["patterns/media/including-images/index.html","99d1e7c2edda76aaa1b81f5766f388a6"],["patterns/media/including-videos/index.html","07b9627cdd045d289489694873e8ce6c"],["patterns/media/index.html","d24c9248c4d23ea88c9be4f501a7ca9a"],["patterns/media/index.xml","71e2766a93623611b6b4c31ae4023eb8"],["patterns/printing/index.html","0ff01ea9a5f2b992d294923617a955fc"],["patterns/serving/index.html","7f8059530d8c617a07e5e4f1c596bc00"],["patterns/setup/index.html","c19f005ae018d13489d1a80b5b2f8420"],["patterns/updating/index.html","f0db2d7b9dadf803dfd76abe57a8a41b"],["patterns/writing/expandable-sections/index.html","14c6973c2b21d97bf8d5c88a1d533af3"],["patterns/writing/index.html","aee1e81de99522785f3b10129e8816b7"],["patterns/writing/index.xml","4cddff005a675e89bf2677d91ffc3723"],["patterns/writing/markdown-and-metadata/index.html","cf0648192aac416bc155d940d31717fc"],["patterns/writing/notes-and-warnings/index.html","04851100417c568a94f18d728e6355a6"],["patterns/writing/project-structure/index.html","5012abea3a86c86704187bade40509f7"],["patterns/writing/references/index.html","88a0d590dc87da54bef9ac8288b01c9d"],["patterns/writing/snippets/index.html","18f3da48d3796a9c628640abf19d4efe"],["patterns/writing/tables-of-contents/index.html","3108ad93ed97288fcbf4c32d8d76cee3"],["print-version/index.html","6088027c4b7e1f2186c2128be8565c66"],["sitemap.xml","3eb68d8dc7012b3f5e73b45320d81868"],["tags/index.html","fa5a588af5106661f13ddcfbe399e7a2"],["tags/index.xml","f9dcce911a40c37aa7dc4ffd4e623a29"],["tags/markdown/index.html","ff8cdddef3117c8a1156e0d9e7a8995a"],["tags/markdown/index.xml","7e7c99e47c7ba81c9f36493e87925bc4"],["tags/metadata/index.html","d9a8d80f07e4fa6c8f1100bae79e7537"],["tags/metadata/index.xml","39f48a6b0cc323e2c1f24dacb7a11442"]];
-var cacheName = 'sw-precache-v3-sw-precache-' + (self.registration ? self.registration.scope : '');
-
-
-var ignoreUrlParametersMatching = [/^utm_/];
-
-
-
-var addDirectoryIndex = function (originalUrl, index) {
- var url = new URL(originalUrl);
- if (url.pathname.slice(-1) === '/') {
- url.pathname += index;
- }
- return url.toString();
- };
-
-var cleanResponse = function (originalResponse) {
- // If this is not a redirected response, then we don't have to do anything.
- if (!originalResponse.redirected) {
- return Promise.resolve(originalResponse);
- }
-
- // Firefox 50 and below doesn't support the Response.body stream, so we may
- // need to read the entire body to memory as a Blob.
- var bodyPromise = 'body' in originalResponse ?
- Promise.resolve(originalResponse.body) :
- originalResponse.blob();
-
- return bodyPromise.then(function(body) {
- // new Response() is happy when passed either a stream or a Blob.
- return new Response(body, {
- headers: originalResponse.headers,
- status: originalResponse.status,
- statusText: originalResponse.statusText
- });
- });
- };
-
-var createCacheKey = function (originalUrl, paramName, paramValue,
- dontCacheBustUrlsMatching) {
- // Create a new URL object to avoid modifying originalUrl.
- var url = new URL(originalUrl);
-
- // If dontCacheBustUrlsMatching is not set, or if we don't have a match,
- // then add in the extra cache-busting URL parameter.
- if (!dontCacheBustUrlsMatching ||
- !(url.pathname.match(dontCacheBustUrlsMatching))) {
- url.search += (url.search ? '&' : '') +
- encodeURIComponent(paramName) + '=' + encodeURIComponent(paramValue);
- }
-
- return url.toString();
- };
-
-var isPathWhitelisted = function (whitelist, absoluteUrlString) {
- // If the whitelist is empty, then consider all URLs to be whitelisted.
- if (whitelist.length === 0) {
- return true;
- }
-
- // Otherwise compare each path regex to the path of the URL passed in.
- var path = (new URL(absoluteUrlString)).pathname;
- return whitelist.some(function(whitelistedPathRegex) {
- return path.match(whitelistedPathRegex);
- });
- };
-
-var stripIgnoredUrlParameters = function (originalUrl,
- ignoreUrlParametersMatching) {
- var url = new URL(originalUrl);
- // Remove the hash; see https://github.com/GoogleChrome/sw-precache/issues/290
- url.hash = '';
-
- url.search = url.search.slice(1) // Exclude initial '?'
- .split('&') // Split into an array of 'key=value' strings
- .map(function(kv) {
- return kv.split('='); // Split each 'key=value' string into a [key, value] array
- })
- .filter(function(kv) {
- return ignoreUrlParametersMatching.every(function(ignoredRegex) {
- return !ignoredRegex.test(kv[0]); // Return true iff the key doesn't match any of the regexes.
- });
- })
- .map(function(kv) {
- return kv.join('='); // Join each [key, value] array into a 'key=value' string
- })
- .join('&'); // Join the array of 'key=value' strings into a string with '&' in between each
-
- return url.toString();
- };
-
-
-var hashParamName = '_sw-precache';
-var urlsToCacheKeys = new Map(
- precacheConfig.map(function(item) {
- var relativeUrl = item[0];
- var hash = item[1];
- var absoluteUrl = new URL(relativeUrl, self.location);
- var cacheKey = createCacheKey(absoluteUrl, hashParamName, hash, false);
- return [absoluteUrl.toString(), cacheKey];
- })
-);
-
-function setOfCachedUrls(cache) {
- return cache.keys().then(function(requests) {
- return requests.map(function(request) {
- return request.url;
- });
- }).then(function(urls) {
- return new Set(urls);
- });
-}
-
-self.addEventListener('install', function(event) {
- event.waitUntil(
- caches.open(cacheName).then(function(cache) {
- return setOfCachedUrls(cache).then(function(cachedUrls) {
- return Promise.all(
- Array.from(urlsToCacheKeys.values()).map(function(cacheKey) {
- // If we don't have a key matching url in the cache already, add it.
- if (!cachedUrls.has(cacheKey)) {
- var request = new Request(cacheKey, {credentials: 'same-origin'});
- return fetch(request).then(function(response) {
- // Bail out of installation unless we get back a 200 OK for
- // every request.
- if (!response.ok) {
- throw new Error('Request for ' + cacheKey + ' returned a ' +
- 'response with status ' + response.status);
- }
-
- return cleanResponse(response).then(function(responseToCache) {
- return cache.put(cacheKey, responseToCache);
- });
- });
- }
- })
- );
- });
- }).then(function() {
-
- // Force the SW to transition from installing -> active state
- return self.skipWaiting();
-
- })
- );
-});
-
-self.addEventListener('activate', function(event) {
- var setOfExpectedUrls = new Set(urlsToCacheKeys.values());
-
- event.waitUntil(
- caches.open(cacheName).then(function(cache) {
- return cache.keys().then(function(existingRequests) {
- return Promise.all(
- existingRequests.map(function(existingRequest) {
- if (!setOfExpectedUrls.has(existingRequest.url)) {
- return cache.delete(existingRequest);
- }
- })
- );
- });
- }).then(function() {
-
- return self.clients.claim();
-
- })
- );
-});
-
-
-self.addEventListener('fetch', function(event) {
- if (event.request.method === 'GET') {
- // Should we call event.respondWith() inside this fetch event handler?
- // This needs to be determined synchronously, which will give other fetch
- // handlers a chance to handle the request if need be.
- var shouldRespond;
-
- // First, remove all the ignored parameters and hash fragment, and see if we
- // have that URL in our cache. If so, great! shouldRespond will be true.
- var url = stripIgnoredUrlParameters(event.request.url, ignoreUrlParametersMatching);
- shouldRespond = urlsToCacheKeys.has(url);
-
- // If shouldRespond is false, check again, this time with 'index.html'
- // (or whatever the directoryIndex option is set to) at the end.
- var directoryIndex = 'index.html';
- if (!shouldRespond && directoryIndex) {
- url = addDirectoryIndex(url, directoryIndex);
- shouldRespond = urlsToCacheKeys.has(url);
- }
-
- // If shouldRespond is still false, check to see if this is a navigation
- // request, and if so, whether the URL matches navigateFallbackWhitelist.
- var navigateFallback = '';
- if (!shouldRespond &&
- navigateFallback &&
- (event.request.mode === 'navigate') &&
- isPathWhitelisted([], event.request.url)) {
- url = new URL(navigateFallback, self.location).toString();
- shouldRespond = urlsToCacheKeys.has(url);
- }
-
- // If shouldRespond was set to true at any point, then call
- // event.respondWith(), using the appropriate cache key.
- if (shouldRespond) {
- event.respondWith(
- caches.open(cacheName).then(function(cache) {
- return cache.match(urlsToCacheKeys.get(url)).then(function(response) {
- if (response) {
- return response;
- }
- throw Error('The cached response that was expected is missing.');
- });
- }).catch(function(e) {
- // Fall back to just fetch()ing the request if some unexpected error
- // prevented the cached response from being valid.
- console.warn('Couldn\'t serve response for "%s" from cache: %O', event.request.url, e);
- return fetch(event.request);
- })
- );
- }
- }
-});
-
-
-
-
-
-
-
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
deleted file mode 100644
index 5f5c0a9..0000000
--- a/docs/sitemap.xml
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/code-blocks/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/installation/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/project-structure/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/demo-embedding/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/media/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/setup/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/markdown-and-metadata/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/serving/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/writing-inline-demos/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/printing/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/updating/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/expandable-sections/
-
-
-
- https://thepaciellogroup.github.io/cupper/print-version/
- 2017-07-29T22:48:43+01:00
-
-
-
- https://thepaciellogroup.github.io/cupper/
- 2017-06-26T18:27:58+01:00
-
-
-
- https://thepaciellogroup.github.io/cupper/categories/
- 0
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/color-palettes/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/command-line/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/file-trees/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/media/including-images/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/media/including-videos/
-
-
-
- https://thepaciellogroup.github.io/cupper/tags/markdown/
- 0
-
-
-
- https://thepaciellogroup.github.io/cupper/tags/metadata/
- 0
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/notes-and-warnings/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/
- 0
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/references/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/snippets/
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/tables-of-contents/
-
-
-
- https://thepaciellogroup.github.io/cupper/tags/
- 0
-
-
-
- https://thepaciellogroup.github.io/cupper/patterns/coding/tested/
-
-
-
\ No newline at end of file
diff --git a/docs/tags/index.html b/docs/tags/index.html
deleted file mode 100644
index 755f8a9..0000000
--- a/docs/tags/index.html
+++ /dev/null
@@ -1,433 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tags | Cupper
-
-
-
-
-
-
- skip to content
-
-
-
-
- Documentation for the Cupper documentation builder, built with Cupper itself.
-
-
- Print version
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/tags/markdown/index.xml b/docs/tags/markdown/index.xml
deleted file mode 100644
index 89f831b..0000000
--- a/docs/tags/markdown/index.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
- Markdown on Cupper
- https://thepaciellogroup.github.io/cupper/tags/markdown/
- Recent content in Markdown on Cupper
- Hugo -- gohugo.io
- en-us
-
-
-
-
-
- Markdown & metadata
- https://thepaciellogroup.github.io/cupper/patterns/writing/markdown-and-metadata/
- Mon, 01 Jan 0001 00:00:00 +0000
-
- https://thepaciellogroup.github.io/cupper/patterns/writing/markdown-and-metadata/
- In Cupper everything is documented using markdown, as a “pattern”. To create a new pattern file, just add a file with the .md extension to the content/patterns folder. It’s recommended you use “kebab case” to name the file (words separated by hyphens). For example, a pattern with the title “Menu button” should probably have the filename menu-button. Then you get a nice clean URL: username.github.io/your-library/patterns/menu-button.
-If you’re not familiar with writing markdown, there are a number of tutorials available.
-
-
-
-
\ No newline at end of file
diff --git a/docs/tags/metadata/index.html b/docs/tags/metadata/index.html
deleted file mode 100644
index 788b2ac..0000000
--- a/docs/tags/metadata/index.html
+++ /dev/null
@@ -1,424 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Patterns tagged Metadata | Cupper
-
-
-
-
-
-
- skip to content
-
-
-
-