Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d744d35
add variables nav item
shawnbot Nov 1, 2019
6b5fa25
add Variables table :sparkles:
shawnbot Nov 1, 2019
a4fa7f8
run dist up a directory in now-build?
shawnbot Nov 1, 2019
dcb7732
get variables from primer dependency
shawnbot Nov 1, 2019
f169512
nix prebuild script; use canary release of primer/css
shawnbot Nov 1, 2019
86015fd
import primer/css stuff from ../..
shawnbot Nov 4, 2019
bbf42f2
nix @primer/css dep, run dist up a dir
shawnbot Nov 4, 2019
21684ca
run now-build.sh
shawnbot Nov 4, 2019
86abe02
get variable deprecations from json
shawnbot Nov 4, 2019
d428c9b
use /package.json for now
shawnbot Nov 4, 2019
cfad20f
add .nowignore
shawnbot Nov 4, 2019
4abb5c6
move now-build.sh up to /script, etc.
shawnbot Nov 4, 2019
016135b
update docs/package-lock.json, npm audit fix
shawnbot Nov 14, 2019
ce25511
Rename now-build script to build
BinaryMuse Dec 16, 2019
1133f96
Add Node 12.x to docs/ engines
BinaryMuse Dec 16, 2019
334bc16
Move now-build.sh to docs folder
BinaryMuse Dec 16, 2019
ccab5da
Revert now.json changes
BinaryMuse Dec 16, 2019
a8d6fba
Finish up Variables page
BinaryMuse Dec 16, 2019
22c778f
Variables page cleanup and linting
BinaryMuse Dec 16, 2019
e7b10d2
:art:
BinaryMuse Dec 16, 2019
ae108fb
Merge remote-tracking branch 'origin/master' into variables-page
BinaryMuse Dec 16, 2019
aff87ba
Remove unused imports
BinaryMuse Dec 16, 2019
5a3d18a
Improve error in dev mode when no variables exist
BinaryMuse Dec 16, 2019
1dbbf81
Don't repeat explanatory text
BinaryMuse Dec 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🎨
  • Loading branch information
BinaryMuse committed Dec 16, 2019
commit e7b10d24f0ae4e4dad8c89f98e7d31a79702e11f
6 changes: 3 additions & 3 deletions docs/src/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ function useVariables() {
return a.deprecated - b.deprecated || a.source.line - b.source.line
})
}

return variablesByFile
} catch (err) {
return new Map()
// do nothing
}

return variablesByFile
}, [])
}

Expand Down