-
Notifications
You must be signed in to change notification settings - Fork 77
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
Admonition directives #47
Conversation
jonas
commented
Oct 26, 2016
•
edited
Loading
edited
A WIP branch to use this in Akka HTTP: jonas/akka-http@9e8c0be |
Awesome! :-) |
@@ -366,3 +366,20 @@ case class VarsDirective(variables: Map[String, String]) extends ContainerBlockD | |||
} | |||
} | |||
} | |||
|
|||
/** | |||
* Adminition directive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Admonition is misspelt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed
444d125
to
e599f79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments.
Also could you add a release note here please for 0.2.6? https://github.com/lightbend/paradox/tree/master/notes
@@ -0,0 +1,72 @@ | |||
Additional directives |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need a better name here, otherwise this page either will be kitchen sink of directives, or we'll have more-additional-directives.md
. Suggestion is "Callout box" callout-box.md
. Who knows what a callout is? Hey it's better than "Additional directives".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I didn't do a better job at researching a good name. Turns out that foundation has callouts.
@@ -1,7 +1,7 @@ | |||
Linking | |||
------- | |||
|
|||
### @ref link | |||
## @ref link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't Linking with ---
an h2? Why is @ref
getting a promotion to h2 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, true. My main goal was to make the side menu more useful.
@@ -3,29 +3,48 @@ | |||
Templating | |||
---------- | |||
|
|||
Paradox uses [StringTemplate][st] for the basic templating. For example: | |||
Paradox uses [StringTemplate][st] for the basic templating. Template files have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this commit should be split into another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
* | ||
* Replaces property values in verbatim blocks. | ||
*/ | ||
case class AdmonitionDirective(name: String, defaultTitle: String) extends ContainerBlockDirective(Array(name): _*) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about renaming to CalloutDirective?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blame the other Jonas, @jboner, for "admonition" :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least blame Sphinx!
Makes `~docs/paradox` work as expected.
I need to find a way to hold your PR hostage so you can ship me jonas/tig#313 :-P |
e599f79
to
d4e3ee1
Compare
@dwijnand I got the rendering part working parsing standout control characters emitted by |
As per color palette, my policy around the "generic" theme was to make it feel neutral as possible, which means make it kind of look like Github's documentation. See their warning and note callouts here: |
Awesome stuff! Really looking forward to this! |
Nice one! |
The warning border color is based on this generated palette: - https://coolors.co/4078c0-084c61-db504a-e3b505-4f6d7a
d4e3ee1
to
df2018b
Compare
@eed3si9n I personally find the warning colors a bit too dark which is why Foundation's warning color was left as is. Some examples: http://codepen.io/anon/pen/RGmgRx |
3 looks good. Thanks for working on this. |