-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af97cfe
commit c194416
Showing
104 changed files
with
734 additions
and
411 deletions.
There are no files selected for viewing
This file contains 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
10 changes: 8 additions & 2 deletions
10
share/mrdocs/addons/generator/adoc/layouts/wrapper.adoc.hbs
This file contains 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 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
19 changes: 19 additions & 0 deletions
19
share/mrdocs/addons/generator/common/partials/location/source.hbs
This file contains 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,19 @@ | ||
{{!-- | ||
Renders where the symbol is declared with a link | ||
If the `base-url` config option is defined, the file name will be | ||
linked to the source file. | ||
Expected Context: {Location Object} | ||
Example: | ||
{{> location/source symbol.loc.def }} | ||
--}} | ||
Declared in {{#>markup/code~}} | ||
{{ str "<" }}{{#unless (and @root.config.base-url (eq dcl.kind "source"))~}} | ||
{{dcl.file}} | ||
{{~else~}} | ||
{{#>markup/a href=(concat @root.config.base-url dcl.file '#L' dcl.line)}}{{dcl.file}}{{/markup/a}} | ||
{{~/unless~}}{{ str ">" }} | ||
{{~/markup/code}} |
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
share/mrdocs/addons/generator/common/partials/signature/alias.hbs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
share/mrdocs/addons/generator/common/partials/signature/concept.hbs
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
share/mrdocs/addons/generator/common/partials/signature/enum.hbs
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
share/mrdocs/addons/generator/common/partials/signature/enumerator.hbs
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
share/mrdocs/addons/generator/common/partials/signature/field.hbs
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
share/mrdocs/addons/generator/common/partials/signature/friend.hbs
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
share/mrdocs/addons/generator/common/partials/signature/function.hbs
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
share/mrdocs/addons/generator/common/partials/signature/guide.hbs
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
share/mrdocs/addons/generator/common/partials/signature/record.hbs
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
share/mrdocs/addons/generator/common/partials/signature/typedef.hbs
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
share/mrdocs/addons/generator/common/partials/signature/using.hbs
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
share/mrdocs/addons/generator/common/partials/signature/variable.hbs
This file was deleted.
Oops, something went wrong.
This file contains 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 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
33 changes: 33 additions & 0 deletions
33
share/mrdocs/addons/generator/common/partials/symbol/name-info.hbs
This file contains 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,33 @@ | ||
{{!-- | ||
Renders a Name Info object. | ||
Expected Context: {Name Info Object} | ||
Optional parameters: | ||
nolink: If true, the name will not be linked. | ||
Example: | ||
{{> name-info symbol }} | ||
See: https://mrdocs.com/docs/mrdocs/develop/generators.html#dom_reference | ||
--}} | ||
{{#if prefix~}} | ||
{{> symbol/name-info prefix nolink=nolink~}}:: | ||
{{~/if~}} | ||
{{#if (contains (arr "see-below" "implementation-defined") name)~}} | ||
{{! These are special names that should not be linked. }} | ||
{{ str '_'}}{{name}}{{ str '_'~}} | ||
{{else~}} | ||
{{! Render the name of the symbol. ~}} | ||
{{#if (and symbol.url (not nolink))~}} | ||
{{! Link to the symbol's documentation. ~}} | ||
{{#>markup/a href=(relativize symbol.url)}}{{name}}{{/markup/a~}} | ||
{{else~}} | ||
{{! No link, just the name. ~}} | ||
{{name~}} | ||
{{/if~}} | ||
{{#if args~}} | ||
{{! Render the template arguments of the symbol. ~}} | ||
{{>template/args args=args nolink=nolink~}} | ||
{{/if~}} | ||
{{/if~}} |
36 changes: 36 additions & 0 deletions
36
share/mrdocs/addons/generator/common/partials/symbol/name.hbs
This file contains 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,36 @@ | ||
{{!-- | ||
Renders the symbol name in an appropriate format for section titles. | ||
This is typically a linked name, but it can also be a special name like | ||
"see-below" or "implementation-defined". | ||
Expected Context: {Symbol Object} | ||
Optional parameters: | ||
nolink: If true, types and symbols will not be linked. | ||
link: Symbol that should be linked to, regardless of the original symbol. | ||
Example: | ||
{{> declarator symbol }} | ||
See: https://mrdocs.com/docs/mrdocs/develop/generators.html#dom_reference | ||
--}} | ||
{{#if (and (eq kind "function") (eq class "conversion"))~}} | ||
{{! Conversion operator: "operator" and the type declarator ~}} | ||
operator {{>type/declarator return nolink=nolink~}} | ||
{{else if (eq kind "guide")~}} | ||
{{! Deduction guide: "deduced" type declarator ~}} | ||
{{>type/declarator deduced nolink=nolink~}} | ||
{{else~}} | ||
{{#if (and link.url (not nolink))~}} | ||
{{! Symbol with URL: link to the symbol documentation ~}} | ||
{{#>markup/a href=(relativize link.url)}}{{name}}{{/markup/a~}} | ||
{{else~}} | ||
{{! Symbol without URL: plain text ~}} | ||
{{name~}} | ||
{{/if~}} | ||
{{#if (contains (arr "explicit" "partial") template.kind)~}} | ||
{{! Explicit or partial template: render the template arguments ~}} | ||
{{>template/args args=template.args nolink=nolink~}} | ||
{{/if~}} | ||
{{/if}} |
Oops, something went wrong.