├── samples ├── tutorial │ ├── artifacts │ │ └── docfx.zip │ ├── images │ │ ├── toc_web_page.png │ │ ├── simple_web_page.png │ │ └── web_page_with_extra_property.png │ ├── walkthrough │ │ ├── images │ │ │ ├── uid.png │ │ │ ├── walkthrough3.png │ │ │ ├── walkthrough_api.png │ │ │ ├── walkthrough_step5.png │ │ │ ├── walkthrough2_step3.png │ │ │ ├── walkthrough2_step4.png │ │ │ ├── walkthrough2_step5.png │ │ │ ├── walkthrough_homepage.png │ │ │ └── walkthrough_simple_homepage.png │ │ ├── artifacts │ │ │ ├── walkthrough1.zip │ │ │ ├── walkthrough2.zip │ │ │ └── walkthrough3.zip │ │ ├── TOC.md │ │ ├── walkthrough_overview.md │ │ ├── advanced_walkthrough.md │ │ ├── walkthrough_create_a_docfx_project.md │ │ └── walkthrough_generate_pdf.md │ ├── incrementalbuild │ │ ├── images │ │ │ ├── incrementalbuildframework.png │ │ │ └── incrementalpostprocessingframework.png │ │ ├── toc.yml │ │ ├── intro_incremental_post_processing.md │ │ ├── customize_a_post_processor_to_be_incremental.md │ │ ├── customize_a_processor_to_support_incremental.md │ │ ├── advanced_cache_file_structure.md │ │ └── advanced_report_dependency.md │ ├── universalreference │ │ ├── toc.yml │ │ ├── intro_multiple_langs_support.md │ │ ├── gen_doc_for_js.md │ │ └── gen_doc_for_ts.md │ ├── intro_default_template.md │ ├── getting-started.md │ ├── toc.yml │ ├── advanced_support_hyperlink.md │ ├── howto_add_a_customized_post_processor.md │ └── howto_create_custom_template.md ├── spec │ ├── images │ │ ├── sdp_workflow.png │ │ ├── docfx_workflow.png │ │ ├── docfx_workflow.vsdx │ │ └── docfx_workflow_highlevel.png │ ├── toc.md │ ├── docfx_design_spec.md │ ├── sdp_design_spec.md │ ├── docfx_incremental.md │ └── triple_slash_comments_spec.md ├── toc.yml ├── menu.yml ├── dotnet │ └── CatLibrary │ │ └── CatLibrary.csproj ├── docfx.json ├── codesnippet │ └── Rtf │ │ ├── RtfBuildStep.cs │ │ ├── RtfDocumentProcessor.cs │ │ └── Hyperlink │ │ └── RtfDocumentProcessor.cs └── index.yml ├── ContentTemplate ├── NetEnum.mta.json.tmpl ├── NetMember.mta.json.tmpl ├── NetType.mta.json.tmpl ├── NetDelegate.mta.json.tmpl ├── NetNamespace.mta.json.tmpl ├── partials │ └── dotnet │ │ ├── xref-name-summary.tmpl │ │ ├── xref-name.tmpl │ │ ├── xref-fullName.tmpl │ │ ├── xref-name-with-title.tmpl │ │ ├── xref-fullName-title.tmpl │ │ ├── remarks.tmpl.partial │ │ ├── seeAlso.tmpl.partial │ │ ├── examples.tmpl.partial │ │ ├── security.tmpl.partial │ │ ├── xref-name-summary-tr.tmpl │ │ ├── typeFooter.tmpl.partial │ │ ├── monikerBoilerplate.tmpl.partial │ │ ├── typeContent.tmpl.partial │ │ ├── xref-summary.tmpl │ │ ├── additionalNotes.tmpl.partial │ │ ├── moniker.tmpl.partial │ │ ├── monikerOverloadMember.tmpl.partial │ │ ├── clsCompliantAlternative.tmpl.partial │ │ ├── additionalNotesWithBigHeader.tmpl.partial │ │ ├── syntax.tmpl.partial │ │ ├── typeMember.tmpl.partial │ │ ├── deprecated.tmpl.partial │ │ ├── returns.tmpl.partial │ │ ├── parameters.tmpl.partial │ │ ├── typeParameters.tmpl.partial │ │ ├── additionalRequirements.tmpl.partial │ │ ├── name-summary-td.tmpl.partial │ │ ├── summary.tmpl.partial │ │ ├── inheritance.tmpl.partial │ │ ├── implement.tmpl.partial │ │ ├── attribute.tmpl.partial │ │ ├── member.tmpl.partial │ │ ├── typeHeader.tmpl.partial │ │ ├── uwpProperties.tmpl.partial │ │ ├── derivedClass.tmpl.partial │ │ ├── overloadMember.tmpl.partial │ │ └── memberCommon.tmpl.partial ├── common.js ├── op.common.js ├── Home.html.primary.js ├── Home.mta.json.js ├── schemas │ ├── Metadata.schema.json │ ├── Menu.schema.json │ ├── Home.schema.json │ └── NetNamespace.schema.json ├── content.common.js ├── Conceptual.mta.json.js ├── NetDelegate.html.primary.js ├── NetEnum.html.primary.tmpl ├── Home.html.primary.tmpl ├── NetDelegate.html.primary.tmpl ├── NetMember.html.primary.tmpl ├── NetNamespace.html.primary.js ├── chrome.common.js ├── NetEnum.html.primary.js ├── shared.js ├── NetNamespace.mta.json.js ├── NetType.html.primary.js ├── NetEnum.mta.json.js ├── NetNamespace.html.primary.tmpl ├── NetDelegate.mta.json.js ├── NetMember.mta.json.js ├── NetMember.html.primary.js ├── NetType.mta.json.js ├── toc.json.js └── token.json ├── .gitattribute ├── .gitmodules ├── Home.html.liquid ├── template.yml ├── .github ├── dependabot.yml └── workflows │ ├── gh-page.yml │ └── build.yml ├── tests └── screenshots │ └── expected │ ├── -375-812-dark.png │ ├── -768-600-dark.png │ ├── -1152-648-dark.png │ ├── -1152-648-light.png │ ├── -1920-1080-dark.png │ ├── -1920-1080-light.png │ ├── -375-812-light.png │ ├── -768-600-light.png │ ├── tutorial-getting-started--375-812-dark.png │ ├── tutorial-getting-started--768-600-dark.png │ ├── tutorial-getting-started--1152-648-dark.png │ ├── tutorial-getting-started--1152-648-light.png │ ├── tutorial-getting-started--1920-1080-dark.png │ ├── tutorial-getting-started--1920-1080-light.png │ ├── tutorial-getting-started--375-812-light.png │ ├── tutorial-getting-started--768-600-light.png │ ├── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--375-812-dark.png │ ├── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--768-600-dark.png │ ├── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--1152-648-dark.png │ ├── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--1152-648-light.png │ ├── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--1920-1080-dark.png │ ├── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--375-812-light.png │ ├── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--768-600-light.png │ └── tutorial-walkthrough-walkthrough_create_a_docfx_project_2--1920-1080-light.png ├── dist ├── glyphicons-halflings-regular-ACNUA6UY.ttf ├── glyphicons-halflings-regular-JOUF32XT.woff ├── glyphicons-halflings-regular-PIHUWCJO.eot └── glyphicons-halflings-regular-W4DYDFZM.woff2 ├── .gitignore ├── Conceptual.html.liquid ├── Reference.html.liquid ├── src ├── scripts │ ├── anchor.ts │ ├── theme.ts │ ├── utility.ts │ ├── highlight.ts │ ├── nav.tsx │ └── toc.tsx ├── docfx.scss ├── docfx.ts └── styles │ ├── article.scss │ ├── nav.scss │ ├── home.scss │ ├── layout.scss │ ├── dotnet.scss │ ├── toc.scss │ └── markdown.scss ├── .editorconfig ├── _includes ├── toc.liquid ├── footer.liquid ├── header.liquid ├── metabar.liquid └── main.liquid ├── package.json ├── README.md └── LICENSE /samples/tutorial/artifacts/docfx.zip: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ContentTemplate/NetEnum.mta.json.tmpl: -------------------------------------------------------------------------------- 1 | {{{content}}} -------------------------------------------------------------------------------- /ContentTemplate/NetMember.mta.json.tmpl: -------------------------------------------------------------------------------- 1 | {{{content}}} -------------------------------------------------------------------------------- /ContentTemplate/NetType.mta.json.tmpl: -------------------------------------------------------------------------------- 1 | {{{content}}} -------------------------------------------------------------------------------- /ContentTemplate/NetDelegate.mta.json.tmpl: -------------------------------------------------------------------------------- 1 | {{{content}}} -------------------------------------------------------------------------------- /ContentTemplate/NetNamespace.mta.json.tmpl: -------------------------------------------------------------------------------- 1 | {{{content}}} -------------------------------------------------------------------------------- /ContentTemplate/partials/dotnet/xref-name-summary.tmpl: -------------------------------------------------------------------------------- 1 | {{>partials/dotnet/name-summary-td}} -------------------------------------------------------------------------------- /ContentTemplate/partials/dotnet/xref-name.tmpl: -------------------------------------------------------------------------------- 1 | {{name}} -------------------------------------------------------------------------------- /.gitattribute: -------------------------------------------------------------------------------- 1 | # Normalize line ending to LF on checkin 2 | * text=auto 3 | 4 | *.sh text eol=lf -------------------------------------------------------------------------------- /ContentTemplate/partials/dotnet/xref-fullName.tmpl: -------------------------------------------------------------------------------- 1 | {{fullName}} -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "extern/docfx"] 2 | path = extern/docfx 3 | url = https://github.com/dotnet/docfx 4 | -------------------------------------------------------------------------------- /Home.html.liquid: -------------------------------------------------------------------------------- 1 | {%- assign layout = 'home' -%} 2 | {%- assign pageType = 'home' -%} 3 | 4 | {%- include main -%} -------------------------------------------------------------------------------- /ContentTemplate/common.js: -------------------------------------------------------------------------------- 1 | var shared = require('./shared.js'); 2 | 3 | exports.getHtmlId = shared.createHtmlId; 4 | -------------------------------------------------------------------------------- /template.yml: -------------------------------------------------------------------------------- 1 | name: Default Template 2 | description: The default docfx site template. 3 | assets: 4 | - dist/** 5 | -------------------------------------------------------------------------------- /ContentTemplate/partials/dotnet/xref-name-with-title.tmpl: -------------------------------------------------------------------------------- 1 | {{name}} -------------------------------------------------------------------------------- /ContentTemplate/partials/dotnet/xref-fullName-title.tmpl: -------------------------------------------------------------------------------- 1 | {{fullName}} -------------------------------------------------------------------------------- /samples/spec/images/sdp_workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/samples/spec/images/sdp_workflow.png -------------------------------------------------------------------------------- /samples/spec/images/docfx_workflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/samples/spec/images/docfx_workflow.png -------------------------------------------------------------------------------- /samples/spec/images/docfx_workflow.vsdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/samples/spec/images/docfx_workflow.vsdx -------------------------------------------------------------------------------- /samples/tutorial/images/toc_web_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/samples/tutorial/images/toc_web_page.png -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: npm 4 | directory: "/" 5 | schedule: 6 | interval: weekly 7 | -------------------------------------------------------------------------------- /samples/tutorial/images/simple_web_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/samples/tutorial/images/simple_web_page.png -------------------------------------------------------------------------------- /samples/tutorial/walkthrough/images/uid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/samples/tutorial/walkthrough/images/uid.png -------------------------------------------------------------------------------- /tests/screenshots/expected/-375-812-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/tests/screenshots/expected/-375-812-dark.png -------------------------------------------------------------------------------- /tests/screenshots/expected/-768-600-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docascode/template/HEAD/tests/screenshots/expected/-768-600-dark.png -------------------------------------------------------------------------------- /ContentTemplate/partials/dotnet/remarks.tmpl.partial: -------------------------------------------------------------------------------- 1 | {{#remarks}} 2 |
3 | {{{type}}}
4 |
5 | {{{description}}}
6 |
3 | {{__global.boilerplateTitle}} 4 |
5 |{{__global.prereleaseBoilerplate}}
6 |{{__global.internalUseOnly}}
3 | {{/isInternalOnly}} 4 | {{#obsoleteMessagesWithMoniker}} 5 |{{__global.clsCompliant}}
5 | {{#altCompliant}} 6 |{{value}}
4 | {{/values}}
5 | {{/syntaxWithMoniker}}
6 | {{#xamlSyntax}}
7 | {{.}}
8 | {{/xamlSyntax}}
9 | {{#xamlMemberSyntax}}
10 | {{.}}
11 | {{/xamlMemberSyntax}}
--------------------------------------------------------------------------------
/samples/spec/toc.md:
--------------------------------------------------------------------------------
1 | # Metadata Specification
2 | ## [General Metadata Specification](metadata_format_spec.md)
3 | ## [.NET Metadata Specification](metadata_dotnet_spec.md)
4 | # Schema-driven Document Processor
5 | ## [Schema v1.0 Specification](docfx_document_schema.md)
6 | ## [Processor Design Specification](sdp_design_spec.md)
7 | # [DocFX Flavored Markdown](docfx_flavored_markdown.md)
8 | # [Triple Slash Comments Support](triple_slash_comments_spec.md)
9 | # [Generated Manifest Specification](docfx_build_manifest_file.md)
10 | # [DocFX Design Specification](docfx_design_spec.md)
11 |
--------------------------------------------------------------------------------
/ContentTemplate/partials/dotnet/typeMember.tmpl.partial:
--------------------------------------------------------------------------------
1 | {{#isInheritedFrom}}
2 | {{__global.deprecated}}
9 | {{/value}} 10 | {{#value}} 11 | {{{.}}} 12 | {{/value}} 13 || {{__global.softwareDevelopmentKit}} | 7 |
8 |
9 | {{name}}
10 |
11 | |
12 |
| {{__global.minimumSupportedOS}} | 18 |
19 |
20 | {{name}} ({{minVersion}})
21 |
22 | |
23 |
{{__global.internalUseOnly}}
10 | {{/isInternalOnly}} 11 | {{#obsoleteMessagesWithMoniker}} 12 |{{{__global.flagsAttributeDisclaimer}}}
12 | {{/isFlags}} 13 | {{#isInternalOnly}} 14 |{{__global.internalUseOnly}}
15 | {{/isInternalOnly}} 16 || 26 | {{#name}} 27 | {{name}} 28 | {{/name}} 29 | | 30 |{{literalValue}} | 31 |{{{summary}}} | 32 |
| {{__global.win10_deviceFamily}} | 8 |
9 |
10 | {{#deviceFamilies}}
11 | {{name}} ({{introducedInVersion}})
14 | 12 | {{/deviceFamilies}} 13 | |
15 |
| API contract |
21 |
22 | {{#apiContracts}}
23 | {{name}} ({{introducedInVersion}})
26 | 24 | {{/apiContracts}} 25 | |
27 |
| {{__global.win10_appCapabilities}} | 34 |
35 |
36 | {{#capabilities}}
37 | {{.}}
38 | {{/capabilities}}
39 |
40 | |
41 |
|
29 | |
31 |
32 | |
34 |
`
41 | | `code` | ``
42 |
43 | Custom tags
44 | -------
45 | ### inheritdoc
46 | `docfx` supports a subset of the [inheritdoc functionality available in Sandcastle](https://ewsoftware.github.io/XMLCommentsGuide/html/86453FFB-B978-4A2A-9EB5-70E118CA8073.htm). Specifically, it implements most of the "Top-Level Inheritance Rules". It does not implement:
47 | * Support for the `select` attribute.
48 | * Automatic inheritance of documentation for explicit interface implementations.
49 | * Support for inline `inheritdoc` tags (i.e., an `inheritdoc` tag inside of an `example` tag).
50 |
51 |
--------------------------------------------------------------------------------
/samples/tutorial/walkthrough/advanced_walkthrough.md:
--------------------------------------------------------------------------------
1 | Walkthrough Advanced: Customize Your Website
2 | ===================================
3 |
4 | ## Apply your own styles to the website or PDF
5 |
6 | ### Export the default template
7 |
8 | To export the default HTML template, open the command line at the root of the directory and run `docfx template export default`.
9 |
10 | A folder called `_exported_templates` is added at root with a directory inside called `default`. This is the DocFX default HTML template.
11 |
12 | To export the default PDF template, run `docfx template export pdf.default`.
13 |
14 | ### Create a new template
15 |
16 | Create a new directory at root to hold your custom templates - name it something like `templates`. Inside that folder, create a new folder and name it whatever you want to name your custom template. In this folder you'll replicate files from `_exported_templates/default` or `_exported_templates/pdf.default` (and only those files) you want to overwrite.
17 |
18 | ### Apply the template
19 |
20 | To apply your custom HTML template permanently, add the following to `docfx.json` at the root of the project inside `"build": {`:
21 |
22 | ```
23 | "template": [
24 | "default",
25 | "templates/