-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Variables page #972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Variables page #972
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
d744d35
add variables nav item
shawnbot 6b5fa25
add Variables table :sparkles:
shawnbot a4fa7f8
run dist up a directory in now-build?
shawnbot dcb7732
get variables from primer dependency
shawnbot f169512
nix prebuild script; use canary release of primer/css
shawnbot 86015fd
import primer/css stuff from ../..
shawnbot bbf42f2
nix @primer/css dep, run dist up a dir
shawnbot 21684ca
run now-build.sh
shawnbot 86abe02
get variable deprecations from json
shawnbot d428c9b
use /package.json for now
shawnbot cfad20f
add .nowignore
shawnbot 4abb5c6
move now-build.sh up to /script, etc.
shawnbot 016135b
update docs/package-lock.json, npm audit fix
shawnbot ce25511
Rename now-build script to build
BinaryMuse 1133f96
Add Node 12.x to docs/ engines
BinaryMuse 334bc16
Move now-build.sh to docs folder
BinaryMuse ccab5da
Revert now.json changes
BinaryMuse a8d6fba
Finish up Variables page
BinaryMuse 22c778f
Variables page cleanup and linting
BinaryMuse e7b10d2
:art:
BinaryMuse ae108fb
Merge remote-tracking branch 'origin/master' into variables-page
BinaryMuse aff87ba
Remove unused imports
BinaryMuse 5a3d18a
Improve error in dev mode when no variables exist
BinaryMuse 1dbbf81
Don't repeat explanatory text
BinaryMuse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,14 +1,15 @@ | ||
| *.log | ||
| *.tgz | ||
| .DS_Store | ||
| .changelog | ||
| .cache/ | ||
| .changelog/ | ||
| .next/ | ||
| .sass-cache | ||
| .stylelintcache | ||
| .storybuild/ | ||
| .stylelintcache | ||
| _site | ||
| dist/ | ||
| docs/dist | ||
| node_modules/ | ||
| searchIndex.js | ||
| .cache/ | ||
| public/ | ||
| searchIndex.js |
This file contains hidden or 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 @@ | ||
| .*.sw? | ||
| .changelog/ | ||
| dist/ | ||
| docs/dist | ||
| docs/public/ |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -13,5 +13,8 @@ | |
| "react": { | ||
| "version": "detect" | ||
| } | ||
| }, | ||
| "globals": { | ||
| "__DEV__": "readonly" | ||
| } | ||
| } | ||
This file contains hidden or 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 @@ | ||
| --- | ||
| title: Variables | ||
| path: support/variables | ||
| status: Experimental | ||
| bundle: alerts | ||
| --- | ||
|
|
||
| import {Variables, DeprecationIcon} from '../../src/variables' | ||
|
|
||
| <Variables> | ||
|
|
||
| The tables below list all of the global SCSS variables defined in [the `support/variables` directory](https://github.com/primer/css/tree/master/src/support/variables). | ||
|
|
||
| Variables with a <DeprecationIcon /> are planned for [deprecation](../tools/deprecations) in a future version of `@primer/css`, and should be avoided. | ||
|
|
||
| </Variables> | ||
This file contains hidden or 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,12 @@ | ||
| exports.onCreateWebpackConfig = ({actions, stage, plugins}) => { | ||
| actions.setWebpackConfig({ | ||
| node: { | ||
| fs: 'empty' | ||
| }, | ||
| plugins: [ | ||
| plugins.define({ | ||
| __DEV__: stage === 'develop' || stage === 'develop-html' | ||
| }) | ||
| ] | ||
| }) | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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,12 @@ | ||
| #!/bin/bash -e | ||
|
|
||
| # Build the base project so we can pull out the JSON data | ||
| cd .. | ||
| npm ci | ||
| npm run dist | ||
| cp -rf dist docs | ||
|
|
||
| # Now build the docs site using that data | ||
| cd docs | ||
| npm ci | ||
| CI=true npm run build-content |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.