File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,12 @@ make docopen
456456This will open a file URL to a one-page version of all the browsable HTML
457457documents using the default browser.
458458
459+ ``` bash
460+ make docclean
461+ ```
462+
463+ This will clean previously built doc.
464+
459465To test if Node.js was built correctly:
460466
461467``` bash
Original file line number Diff line number Diff line change 22
33{
44 function setupTheme ( ) {
5- const kCustomPreference = 'customDarkTheme' ;
6- const userSettings = sessionStorage . getItem ( kCustomPreference ) ;
5+ const storedTheme = localStorage . getItem ( 'theme' ) ;
76 const themeToggleButton = document . getElementById ( 'theme-toggle-btn' ) ;
87
9- if ( userSettings === null && window . matchMedia ) {
8+ // Follow operating system theme preference
9+ if ( storedTheme === null && window . matchMedia ) {
1010 const mq = window . matchMedia ( '(prefers-color-scheme: dark)' ) ;
1111
1212 if ( 'onchange' in mq ) {
2828 if ( mq . matches ) {
2929 document . documentElement . classList . add ( 'dark-mode' ) ;
3030 }
31- } else if ( userSettings === 'true ' ) {
31+ } else if ( storedTheme === 'dark ' ) {
3232 document . documentElement . classList . add ( 'dark-mode' ) ;
3333 }
3434
3535 if ( themeToggleButton ) {
3636 themeToggleButton . hidden = false ;
3737 themeToggleButton . addEventListener ( 'click' , function ( ) {
38- sessionStorage . setItem (
39- kCustomPreference ,
40- document . documentElement . classList . toggle ( 'dark-mode' ) ,
38+ localStorage . setItem (
39+ 'theme' ,
40+ document . documentElement . classList . toggle ( 'dark-mode' ) ? 'dark' : 'light' ,
4141 ) ;
4242 } ) ;
4343 }
Original file line number Diff line number Diff line change @@ -532,9 +532,10 @@ The TSC serves as the final arbiter where required.
532532 [ build] ( https://github.com/nodejs/build/issues ) repositories, open new
533533 issues. Run a new CI any time someone pushes new code to the pull request.
5345344 . Check that the commit message adheres to [ commit message guidelines] [ ] .
535- 5 . Add all necessary [ metadata] ( #metadata ) to commit messages before landing. If
536- you are unsure exactly how to format the commit messages, use the commit log
537- as a reference. See [ this commit] [ commit-example ] as an example.
535+ 5 . Add all necessary [ metadata] [ git-node-metadata ] to commit messages before
536+ landing. If you are unsure exactly how to format the commit messages, use
537+ the commit log as a reference. See [ this commit] [ commit-example ] as an
538+ example.
538539
539540For pull requests from first-time contributors, be
540541[ welcoming] ( #welcoming-first-time-contributors ) . Also, verify that their git
You can’t perform that action at this time.
0 commit comments