This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
generated from primer/doctocat-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8d82698
Showing
14 changed files
with
18,809 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" | ||
allow: | ||
- dependency-name: "@primer/gatsby-theme-doctocat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# 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 | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# 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 | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# Gatsby | ||
public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "all", | ||
"bracketSpacing": false, | ||
"semi": false, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Doctocat Template | ||
|
||
|
||
## Getting Started | ||
|
||
1. Install dependencies | ||
|
||
`yarn` | ||
|
||
2. Build the site (this only needs to be done once) | ||
|
||
`yarn run build` | ||
|
||
3. Run the development server | ||
|
||
`yarn run develop` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"plugins": [ "@babel/plugin-proposal-logical-assignment-operators" ], | ||
"presets": [ | ||
[ | ||
"babel-preset-gatsby", | ||
{ | ||
"targets": { | ||
"browsers": [ | ||
">0.25%", | ||
"not dead" | ||
] | ||
} | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Example | ||
--- | ||
|
||
Example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Page 2 | ||
--- | ||
|
||
Page 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
--- | ||
title: Doctocat Template | ||
--- | ||
|
||
import {HeroLayout} from '@primer/gatsby-theme-doctocat' | ||
export default HeroLayout | ||
|
||
Text can be **bold**, _italic_, or ~~strikethrough~~. [Links](https://github.com) should be blue with no underlines (unless hovered over). | ||
|
||
There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. | ||
|
||
There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. | ||
|
||
> There should be no margin above this first sentence. | ||
> | ||
> Blockquotes should be a lighter gray with a gray border along the left side. | ||
> | ||
> There should be no margin below this final sentence. | ||
# Header 1 | ||
|
||
This is a normal paragraph following a header. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong. | ||
|
||
## Header 2 | ||
|
||
> This is a blockquote following a header. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong. | ||
### Header 3 | ||
|
||
``` | ||
This is a code block following a header. | ||
``` | ||
|
||
#### Header 4 | ||
|
||
- This is an unordered list following a header. | ||
- This is an unordered list following a header. | ||
- This is an unordered list following a header. | ||
|
||
##### Header 5 | ||
|
||
1. This is an ordered list following a header. | ||
2. This is an ordered list following a header. | ||
3. This is an ordered list following a header. | ||
|
||
###### Header 6 | ||
|
||
| What | Follows | | ||
| ------- | -------- | | ||
| A table | A header | | ||
| A table | A header | | ||
| A table | A header | | ||
|
||
--- | ||
|
||
There's a horizontal rule above and below this. | ||
|
||
--- | ||
|
||
Here is an unordered list: | ||
|
||
- Salt-n-Pepa | ||
- Bel Biv DeVoe | ||
- Kid 'N Play | ||
|
||
And an ordered list: | ||
|
||
1. Michael Jackson | ||
2. Michael Bolton | ||
3. Michael Bublé | ||
|
||
And an unordered task list: | ||
|
||
- [x] Create a sample markdown document | ||
- [x] Add task lists to it | ||
- [ ] Take a vacation | ||
|
||
And a "mixed" task list: | ||
|
||
- [ ] Steal underpants | ||
- ? | ||
- [ ] Profit! | ||
|
||
And a nested list: | ||
|
||
- Jackson 5 | ||
- Michael | ||
- Tito | ||
- Jackie | ||
- Marlon | ||
- Jermaine | ||
- TMNT | ||
- Leonardo | ||
- Michelangelo | ||
- Donatello | ||
- Raphael | ||
|
||
Definition lists can be used with HTML syntax. Definition terms are bold and italic. | ||
|
||
<dl> | ||
<dt>Name</dt> | ||
<dd>Godzilla</dd> | ||
<dt>Born</dt> | ||
<dd>1952</dd> | ||
<dt>Birthplace</dt> | ||
<dd>Japan</dd> | ||
<dt>Color</dt> | ||
<dd>Green</dd> | ||
</dl> | ||
|
||
--- | ||
|
||
Tables should have bold headings and alternating shaded rows. | ||
|
||
| Artist | Album | Year | | ||
| --------------- | -------------- | ---- | | ||
| Michael Jackson | Thriller | 1982 | | ||
| Prince | Purple Rain | 1984 | | ||
| Beastie Boys | License to Ill | 1986 | | ||
|
||
If a table is too wide, it should condense down and/or scroll horizontally. | ||
|
||
| Artist | Album | Year | Label | Awards | Songs | | ||
| --------------- | -------------- | ---- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| Michael Jackson | Thriller | 1982 | Epic Records | Grammy Award for Album of the Year, American Music Award for Favorite Pop/Rock Album, American Music Award for Favorite Soul/R&B Album, Brit Award for Best Selling Album, Grammy Award for Best Engineered Album, Non-Classical | Wanna Be Startin' Somethin', Baby Be Mine, The Girl Is Mine, Thriller, Beat It, Billie Jean, Human Nature, P.Y.T. (Pretty Young Thing), The Lady in My Life | | ||
| Prince | Purple Rain | 1984 | Warner Brothers Records | Grammy Award for Best Score Soundtrack for Visual Media, American Music Award for Favorite Pop/Rock Album, American Music Award for Favorite Soul/R&B Album, Brit Award for Best Soundtrack/Cast Recording, Grammy Award for Best Rock Performance by a Duo or Group with Vocal | Let's Go Crazy, Take Me With U, The Beautiful Ones, Computer Blue, Darling Nikki, When Doves Cry, I Would Die 4 U, Baby I'm a Star, Purple Rain | | ||
| Beastie Boys | License to Ill | 1986 | Mercury Records | noawardsbutthistablecelliswide | Rhymin & Stealin, The New Style, She's Crafty, Posse in Effect, Slow Ride, Girls, (You Gotta) Fight for Your Right, No Sleep Till Brooklyn, Paul Revere, Hold It Now, Hit It, Brass Monkey, Slow and Low, Time to Get Ill | | ||
|
||
--- | ||
|
||
Code snippets like `var foo = "bar";` can be shown inline. | ||
|
||
Also, `this should vertically align` ~~`with this`~~ ~~and this~~. | ||
|
||
Code can also be shown in a block element. | ||
|
||
``` | ||
var foo = "bar"; | ||
``` | ||
|
||
Code can also use syntax highlighting. | ||
|
||
```javascript | ||
var foo = 'bar' | ||
``` | ||
|
||
``` | ||
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this. | ||
``` | ||
|
||
```javascript | ||
var foo = | ||
'The same thing is true for code with syntax highlighting. A single line of code should horizontally scroll if it is really long.' | ||
``` | ||
|
||
```jsx live | ||
<div>Live example</div> | ||
``` | ||
|
||
Inline code inside table cells should still be distinguishable. | ||
|
||
| Language | Code | | ||
| ---------- | ------------------ | | ||
| Javascript | `var foo = "bar";` | | ||
| Ruby | `foo = "bar"` | | ||
|
||
--- | ||
|
||
Small images should be shown at their actual size. | ||
|
||
![](http://placekitten.com/g/300/200/) | ||
|
||
Large images should always scale down and fit in the content container. | ||
|
||
![](http://placekitten.com/g/1200/800/) | ||
|
||
``` | ||
This is the final element on the page and there should be no margin below this. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: Page 1 | ||
--- | ||
|
||
Page 1 | ||
|
||
|
||
## Subheading | ||
|
||
|
||
## Subheading 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
siteMetadata: { | ||
title: 'Doctocat Template', | ||
shortName: 'Template', | ||
description: 'My site description', | ||
}, | ||
plugins: ['@primer/gatsby-theme-doctocat'], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": 2, | ||
"name": "doctocat-template", | ||
"builds": [ | ||
{ | ||
"src": "package.json", | ||
"use": "@now/static-build", | ||
"config": {"distDir": "public"} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "doctocat-template", | ||
"repository": "primer/doctocat-template", | ||
"version": "1.1.0", | ||
"scripts": { | ||
"develop": "gatsby develop", | ||
"build": "gatsby build", | ||
"now-build": "yarn run build" | ||
}, | ||
"dependencies": { | ||
"@primer/gatsby-theme-doctocat": "^4.0.0", | ||
"gatsby": "^2.32.13", | ||
"react": "^16.9.0", | ||
"react-dom": "^16.9.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", | ||
"babel-preset-gatsby": "^2.20.0" | ||
} | ||
} |
Oops, something went wrong.