Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs auto dark mode #20188

Merged
merged 12 commits into from
Aug 21, 2022
Merged

Docs auto dark mode #20188

merged 12 commits into from
Aug 21, 2022

Conversation

AmjadHD
Copy link
Contributor

@AmjadHD AmjadHD commented Aug 9, 2022

image

@AmjadHD
Copy link
Contributor Author

AmjadHD commented Aug 10, 2022

FWIW I needed to add some padding around the sidebar to fix these:
image
image

@AmjadHD AmjadHD requested a review from metagn August 14, 2022 14:29
Copy link
Collaborator

@metagn metagn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally can't comment on CSS/HTML changes.

tools/dochack/dochack.nim Outdated Show resolved Hide resolved
@AmjadHD AmjadHD requested a review from ringabout August 14, 2022 19:20
@AmjadHD
Copy link
Contributor Author

AmjadHD commented Aug 17, 2022

@ringabout can you review this please ?

Copy link
Member

@ringabout ringabout left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote exportC before, but we should make the style consistent with its definition. I don't know too much HTML or JS, it looks good to me.

tools/dochack/dochack.nim Outdated Show resolved Hide resolved
tools/dochack/dochack.nim Outdated Show resolved Hide resolved
@AmjadHD
Copy link
Contributor Author

AmjadHD commented Aug 18, 2022

So, It's Ok to merge now ?

@Varriount
Copy link
Contributor

@ringabout I have some modicum of HTML/CSS knowledge, enough to review PRs like this.

config/nimdoc.cfg Outdated Show resolved Hide resolved
config/nimdoc.cfg Outdated Show resolved Hide resolved
doc/nimdoc.css Show resolved Hide resolved
tools/dochack/dochack.nim Outdated Show resolved Hide resolved
@AmjadHD AmjadHD requested a review from Varriount August 21, 2022 10:35
@Varriount Varriount merged commit 70a8e0d into nim-lang:devel Aug 21, 2022
@github-actions
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from 70a8e0d

Hint: mm: orc; threads: on; opt: speed; options: -d:release
163622 lines; 16.365s; 841.812MiB peakmem

@AmjadHD AmjadHD deleted the auto-dark-mode branch August 21, 2022 21:30
a-mr added a commit to a-mr/Nim that referenced this pull request Aug 23, 2022
Varriount added a commit that referenced this pull request Aug 23, 2022
* Add `doctype: RST|Markdown|RstMarkdown` pragma

Implements nim-lang/RFCs#68 ,
see also discussion in #17987

The permitted values:
* `markdown`, which is default. It still contains nearly all of
  the RST supported but it is assumed that in time we will give up
  most or all RST features in this mode
* `rst`, without any extensions
* `RstMarkdown` — compatibility with Nim 1.x. It's basically RST
  with those Markdown features enabled that don't conflict with RST.

* Apply suggestions from code review

Co-authored-by: Clay Sweetser <[email protected]>

* Additional fix in spirit of review

* Fix test after #20188

Co-authored-by: Clay Sweetser <[email protected]>
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
* Implement auto dark mode

* Rename class

* Fix borders cutout

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: ringabout <[email protected]>
capocasa pushed a commit to capocasa/Nim that referenced this pull request Mar 31, 2023
* Add `doctype: RST|Markdown|RstMarkdown` pragma

Implements nim-lang/RFCs#68 ,
see also discussion in nim-lang#17987

The permitted values:
* `markdown`, which is default. It still contains nearly all of
  the RST supported but it is assumed that in time we will give up
  most or all RST features in this mode
* `rst`, without any extensions
* `RstMarkdown` — compatibility with Nim 1.x. It's basically RST
  with those Markdown features enabled that don't conflict with RST.

* Apply suggestions from code review

Co-authored-by: Clay Sweetser <[email protected]>

* Additional fix in spirit of review

* Fix test after nim-lang#20188

Co-authored-by: Clay Sweetser <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants