-
Notifications
You must be signed in to change notification settings - Fork 383
Brand extension #13193
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
Brand extension #13193
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7b7177a
resolve extension metadata uniformly during object creation
cscheid 1da9559
brand extension
gordonwoodhull d5365a8
artifacts
gordonwoodhull 8adfb68
brand extension: logo and typography tests
gordonwoodhull 135b59c
extensions: also detect href extensions with backslash
gordonwoodhull 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
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
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
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,4 @@ | ||
*.html | ||
*_files/ | ||
/.quarto/ |
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,22 @@ | ||
# <%= title %> Extension For Quarto | ||
|
||
_TODO_: Add a short description of your extension. | ||
|
||
## Installing | ||
|
||
_TODO_: Replace the `<github-organization>` with your GitHub organization. | ||
|
||
```bash | ||
quarto add <github-organization>/<%= filesafename %> | ||
``` | ||
|
||
This will install the extension under the `_extensions` subdirectory. | ||
If you're using version control, you will want to check in this directory. | ||
|
||
## Using | ||
|
||
This extension installs a [brand.yml](https://posit-dev.github.io/brand-yml/) configuration for _your organization name_. | ||
|
||
## Example | ||
|
||
Here is the source code for a minimal example: [example.qmd](example.qmd). |
8 changes: 8 additions & 0 deletions
8
...resources/create/extensions/brand/_extensions/qstart-filesafename-qend/_extension.ejs.yml
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,8 @@ | ||
title: <%= title %> | ||
author: <%= author %> | ||
version: <%= version %> | ||
quarto-required: ">=<%= quartoversion %>" | ||
contributes: | ||
metadata: | ||
project: | ||
brand: brand.yml |
9 changes: 9 additions & 0 deletions
9
src/resources/create/extensions/brand/_extensions/qstart-filesafename-qend/brand.yml
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,9 @@ | ||
# minimal brand.yml enabling dark mode | ||
# replace with your brand colors, logos, and typography! | ||
color: | ||
background: | ||
light: "#fff" | ||
dark: "#000" | ||
foreground: | ||
light: "#000" | ||
dark: "#fff" |
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,3 @@ | ||
# currently a quarto project is required for metadata or brand extensions to work | ||
project: | ||
type: default |
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,26 @@ | ||
--- | ||
title: your brand extension | ||
--- | ||
|
||
# brand.yml extension | ||
|
||
Here is some inline code: `def foo(x): return x`{.python} and `y`{.python} and `z`{.python}. | ||
|
||
Here is [a link](https://example.com). | ||
|
||
Here is a code block: | ||
|
||
```{.r} | ||
# | echo: true | ||
fibonacci <- function(n) { | ||
if (n <= 0) { | ||
return(NULL) | ||
} else if (n == 1) { | ||
return(0) | ||
} else if (n == 2) { | ||
return(1) | ||
} else { | ||
return(fibonacci(n - 1) + fibonacci(n - 2)) | ||
} | ||
} | ||
``` |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
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.