Create scss-docs shortcode to get some snippets from the Scss source files#30502
Merged
MartijnCuppens merged 5 commits intomasterfrom Apr 6, 2020
Merged
Create scss-docs shortcode to get some snippets from the Scss source files#30502MartijnCuppens merged 5 commits intomasterfrom
scss-docs shortcode to get some snippets from the Scss source files#30502MartijnCuppens merged 5 commits intomasterfrom
Conversation
Member
|
Oh you brilliant son of a bucket, that's rad. This is fresh as hell. |
1856e0a to
b6b6c51
Compare
Member
|
I love this, it'll make things so much easier! |
Member
Author
|
Neither the positive lookbehind syntax nor grouping seem to be supported in Hugo regex, so the replacing the comments seems to be the way to go. Ready for review! |
Member
|
It's in my backlog 🙂
I'll check what's supported but this seems to do the job anyway.
…On Fri, Apr 3, 2020, 19:43 Martijn Cuppens ***@***.***> wrote:
Neither the positive lookbehind syntax nor grouping seem to be supported
in Hugo regex, so the replacing the comments seems to be the way to go.
Ready for review!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30502 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACVLNOQJMEO5Q5TSYZJCSLRKYG3ZANCNFSM4L236MQQ>
.
|
3b5ad06 to
9417b75
Compare
5 tasks
9417b75 to
70923af
Compare
mdo
approved these changes
Apr 6, 2020
Member
mdo
left a comment
There was a problem hiding this comment.
This looks lovely to me, so adding an approval for whatever it's worth :).
XhmikosR
approved these changes
Apr 6, 2020
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This should be a little bit easier that creating a custom regex per case.
Usage in
.scss:In the docs files:
{{< scss-docs name="awesome-code" file="scss/_variables.scss" >}}I don't think the positive lookbehind syntax works in Hugo, so I replaced the comments in the end of the file, there are probably better ways to fix this (bump @XhmikosR)
TODO:
!defaultflags by default