mirror of https://github.com/explosion/spaCy.git
Add nightly favicon and Binder [ci skip]
This commit is contained in:
parent
db12ee4da9
commit
5d02f71653
|
@ -17,6 +17,8 @@ const DEFAULT_TEMPLATE = path.resolve('./src/templates/index.js')
|
||||||
const NIGHTLY_BRANCHES = ['spacy.io-develop']
|
const NIGHTLY_BRANCHES = ['spacy.io-develop']
|
||||||
|
|
||||||
const isNightly = !!+process.env.SPACY_NIGHTLY || NIGHTLY_BRANCHES.includes(process.env.BRANCH)
|
const isNightly = !!+process.env.SPACY_NIGHTLY || NIGHTLY_BRANCHES.includes(process.env.BRANCH)
|
||||||
|
const favicon = isNightly ? `src/images/icon_nightly.png` : `src/images/icon.png`
|
||||||
|
const binderBranch = isNightly ? 'nightly' : site.binderBranch
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
|
@ -26,6 +28,7 @@ module.exports = {
|
||||||
...models,
|
...models,
|
||||||
universe,
|
universe,
|
||||||
nightly: isNightly,
|
nightly: isNightly,
|
||||||
|
binderBranch,
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -132,7 +135,7 @@ module.exports = {
|
||||||
background_color: site.theme,
|
background_color: site.theme,
|
||||||
theme_color: site.theme,
|
theme_color: site.theme,
|
||||||
display: `minimal-ui`,
|
display: `minimal-ui`,
|
||||||
icon: `src/images/icon.png`,
|
icon: favicon,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
Loading…
Reference in New Issue