Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Add an example for branding site configuration (#3780)
Browse files Browse the repository at this point in the history
This adds an example to the schema for the `branding` property to
showcase on the docs page how to use it.
  • Loading branch information
mrnugget authored May 3, 2019
1 parent 3904150 commit 4966a7f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
2 changes: 2 additions & 0 deletions schema/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions schema/site.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"group": "Security"
},
"branding": {
"description": "Customize Sourcegraph homepage logo and search icon.",
"description": "Customize Sourcegraph homepage logo and search icon.\n\nOnly available in Sourcegraph Enterprise.",
"type": "object",
"additionalProperties": false,
"properties": {
Expand All @@ -166,7 +166,20 @@
"type": "string",
"format": "uri"
}
}
},
"examples": [
{
"favicon": "https://example.com/favicon.ico",
"light": {
"logo": "https://example.com/logo_light.png",
"symbol": "https://example.com/search_symbol_light_24x24.png"
},
"dark": {
"logo": "https://example.com/logo_dark.png",
"symbol": "https://example.com/search_symbol_dark_24x24.png"
}
}
]
},
"email.smtp": {
"title": "SMTPServerConfig",
Expand Down
17 changes: 15 additions & 2 deletions schema/site_stringdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4966a7f

Please sign in to comment.