-
-
Notifications
You must be signed in to change notification settings - Fork 30
Add per-file overrides using field lists #50
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
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
297ba8e
Use field lists to implement per page overrides
ItayZiv b56c4c5
Move location where quotes are escaped so that it will work with per …
ItayZiv 82299a0
Add title override
ItayZiv 63655fd
Add documentation for field lists
ItayZiv 3a8e623
Fix empty field lists from crashing
ItayZiv cbdcc0f
Add tests
ItayZiv 00b05ca
Refractor to use fields.get to get the values
ItayZiv a72b254
Run black
ItayZiv fd86b2f
Add arbitrary tags support
ItayZiv fc6d023
Add tests for arbitrary tags
ItayZiv 13fb48a
Add documentation for arbitrary tags
ItayZiv 0f3e4a8
Prevent creation of multiple tags with the same property
ItayZiv 0f1298a
Revert "Prevent creation of multiple tags with the same property"
ItayZiv b846603
Rework overrides and arbitrary tags and slightly change syntax
ItayZiv 4ad988f
Update readme.md and adjust image:alt functionality
ItayZiv d0707a9
Apply suggestions from code review
ItayZiv c3ab424
Run black
ItayZiv 8ee2ff6
Remove any support for relative paths with field lists and add a note
ItayZiv 6db225b
Revert relative url behaviour
ItayZiv 7ec4e17
Change readme to align with previous commit
ItayZiv a43d75b
Disable relative file paths with field lists
ItayZiv 18c4aa6
Fix typo in comments
ItayZiv 1ca449d
Update README.md
ItayZiv 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extensions = ["sphinxext.opengraph"] | ||
|
||
master_doc = "index" | ||
exclude_patterns = ["_build"] | ||
|
||
html_theme = "basic" | ||
|
||
ogp_site_url = "http://example.org/" |
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 @@ | ||
:og:video: http://example.org/video.mp4 | ||
:og:video:type: video/mp4 | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse at lorem ornare, fringilla massa nec, venenatis mi. Donec erat sapien, tincidunt nec rhoncus nec, scelerisque id diam. Orci varius natoque penatibus et magnis dis parturient mauris. |
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,10 @@ | ||
extensions = ["sphinxext.opengraph"] | ||
|
||
master_doc = "index" | ||
exclude_patterns = ["_build"] | ||
|
||
html_theme = "basic" | ||
|
||
ogp_site_name = "Example's Docs!" | ||
ogp_site_url = "http://example.org/" | ||
ogp_image_alt = "Example Alt Text" |
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,7 @@ | ||
:ogp_description_length: 10 | ||
:og:image: img/sample.jpg | ||
:og:image:alt: Overridden Alt Text | ||
|
||
Lorem Ipsum | ||
=========== | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse at lorem ornare, fringilla massa nec, venenatis mi. Donec erat sapien, tincidunt nec rhoncus nec, scelerisque id diam. Orci varius natoque penatibus et magnis dis parturient mauris. |
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,11 @@ | ||
extensions = ["sphinxext.opengraph"] | ||
|
||
master_doc = "index" | ||
exclude_patterns = ["_build"] | ||
|
||
html_theme = "basic" | ||
|
||
ogp_site_name = "Example's Docs!" | ||
ogp_site_url = "http://example.org/" | ||
ogp_image = "http://example.org/image.png" | ||
ogp_type = "book" |
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 @@ | ||
:og:description: Overridden description | ||
:og:title: Overridden Title | ||
:og:type: article | ||
:og:image: http://example.org/overridden-image.png | ||
|
||
Lorem Ipsum | ||
=========== | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse at lorem ornare, fringilla massa nec, venenatis mi. Donec erat sapien, tincidunt nec rhoncus nec, scelerisque id diam. Orci varius natoque penatibus et magnis dis parturient mauris. |
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
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.