Skip to content

Commit c047386

Browse files
authored
Update docfx (#2387)
* Update docfx * restore default * Customize docfx
1 parent 7ea9c52 commit c047386

File tree

129 files changed

+27343
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+27343
-64
lines changed

.github/workflows/publish-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
dotnet-version: ${{ env.DOTNET_VERSION }}
2727
- name: Build
2828
run: |
29-
dotnet tool install --global docfx --version 2.60.2
29+
dotnet tool install --global docfx --version 2.74.1
3030
3131
docfx metadata docfx_project\docfx.json
3232
docfx build docfx_project\docfx.json -o docs

docfx_project/docfx.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
{
44
"src": [
55
{
6-
"cwd": "../",
76
"files": [
8-
"lib/PuppeteerSharp/**.csproj"
9-
]
7+
"**.csproj"
8+
],
9+
"src": "../lib/PuppeteerSharp"
1010
}
1111
],
1212
"dest": "api",
1313
"disableGitFeatures": false,
1414
"properties": {
15-
"TargetFramework": "net46"
16-
}
15+
"TargetFramework": "net8"
16+
},
17+
"allowCompilationErrors": true
1718
}
1819
],
1920
"build": {
@@ -59,10 +60,15 @@
5960
"globalMetadataFiles": [],
6061
"fileMetadataFiles": [],
6162
"template": [
62-
"default",
63-
"./template"
63+
"default",
64+
"modern",
65+
"./templates/custom"
6466
],
6567
"postProcessors": [],
68+
"globalMetadata": {
69+
"_appFooter": "<span>Made with love by <a href=\"https://www.hardkoded.com\" rel=\"noreferrer\">Dario Kondratiuk</a></span>",
70+
"_googleAnalyticsTagId": "UA-586295-9"
71+
},
6672
"markdownEngineName": "markdig",
6773
"noLangKeyword": false,
6874
"keepFileLink": false,
@@ -73,4 +79,4 @@
7379
"priority": 1
7480
}
7581
}
76-
}
82+
}

docfx_project/readme.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# DocFX configuration
2+
3+
## Customizations
4+
5+
These are the changes made in the custom template.
6+
7+
* `conceptual.html.primary.js`: Add the `docurl` pointing to the GitHub issues page.
8+
* 'logo.svg` is the puppeteer-sharp logo.
9+
* `ManagedReference.common.js` is the same as the one in `common` but we are setting the `docurl` to point to the GitHub issues page.
10+
* `token.json`. We change the `improveThisDoc` text.
11+
* `partials/class.header.tmpl.partial`: The `inherited members` section was removed.

docfx_project/template/partials/footer.tmpl.partial

Lines changed: 0 additions & 25 deletions
This file was deleted.

docfx_project/template/partials/scripts.tmpl.partial

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
root = false
2+
3+
# Settings for Docfx template files
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
module.exports = {
5+
env: {
6+
browser: true
7+
},
8+
ignorePatterns: ['**/*.js'],
9+
extends: ['standard', 'eslint:recommended', 'plugin:@typescript-eslint/recommended'],
10+
parser: '@typescript-eslint/parser',
11+
plugins: ['@typescript-eslint'],
12+
root: true,
13+
rules: {
14+
'space-before-function-paren': ['warn', 'never'],
15+
}
16+
};

docfx_project/templates/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.min.js
2+
*.min.css
3+
*.map
4+
*.woff
5+
*.woff2
6+
7+
glyphicons-*.*
8+
9+
dist
10+
fonts
11+
node_modules
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"ignoreFiles": [
4+
"**/*.ts",
5+
"**/*.js"
6+
],
7+
"rules": {
8+
"selector-class-pattern": null,
9+
"media-feature-range-notation": null,
10+
"font-family-no-missing-generic-family-keyword": [ true, {
11+
"ignoreFontFamilies": [
12+
"bootstrap-icons"
13+
]
14+
}]
15+
}
16+
}

docfx_project/templates/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This folder contains the source code for website themes used by docfx.exe.

0 commit comments

Comments
 (0)