File tree Expand file tree Collapse file tree 3 files changed +8
-19
lines changed
_template/material/public Expand file tree Collapse file tree 3 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 27
27
dotnet-version : 8.0.x
28
28
29
29
- name : Setup DocFX
30
- run : dotnet tool install -g docfx --version 2.76 .0
30
+ run : dotnet tool install -g docfx --version 2.77 .0
31
31
32
32
- name : Build DNet docs
33
33
run : docfx docs/docfx.json
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ The documentation for the Discord.Net library uses [DocFX][docfx-main].
4
4
Instructions for installing this tool can be found [ here] [ docfx-installing ] .
5
5
6
6
> [ !IMPORTANT]
7
- > You must use DocFX version ** 2.76 .0** for everything to work correctly.
7
+ > You must use DocFX version ** 2.77 .0** for everything to work correctly.
8
8
9
9
1 . Navigate to the root of the repository.
10
10
2 . Build the docs using ` docfx docs/docfx.json ` . Add the ` --serve `
Original file line number Diff line number Diff line change 22
22
{
23
23
// Ugly hack to improve toc filter.
24
24
let target = document . getElementById ( "toc" ) ;
25
-
26
- if ( ! target ) return ;
27
-
25
+
26
+ if ( ! target ) return ;
27
+
28
28
let config = { attributes : false , childList : true , subtree : true } ;
29
29
let observer = new MutationObserver ( ( list ) =>
30
30
{
31
- for ( const mutation of list )
31
+ for ( const mutation of list )
32
32
{
33
- if ( mutation . type === "childList" && mutation . target == target )
33
+ if ( mutation . type === "childList" && mutation . target == target )
34
34
{
35
- let filter = target . getElementsByClassName ( "form-control" ) [ 0 ] ;
36
-
37
- let filterValue = localStorage . getItem ( "tocFilter" ) ;
38
35
let scrollValue = localStorage . getItem ( "tocScroll" ) ;
39
36
40
- if ( filterValue && filterValue !== "" )
41
- {
42
- filter . value = filterValue ;
43
-
44
- let inputEvent = new Event ( "input" ) ;
45
- filter . dispatchEvent ( inputEvent ) ;
46
- }
47
-
48
37
// Add event to store scroll pos.
49
38
let tocDiv = target . getElementsByClassName ( "flex-fill" ) [ 0 ] ;
50
39
56
45
}
57
46
} ) ;
58
47
59
- if ( scrollValue && scrollValue >= 0 )
48
+ if ( scrollValue && scrollValue >= 0 )
60
49
{
61
50
tocDiv . scroll ( 0 , scrollValue ) ;
62
51
}
You can’t perform that action at this time.
0 commit comments