1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00
Commit graph

61 commits

Author SHA1 Message Date
Valentin Gagarin 41f580f488 remove email subscription form
historically it still points to Cachix and not to a community-owned
instance. at the moment there is no regular community newsletter, which
would certainly include updates about documentation. we can add it back
once such a thing exists.
2024-01-26 21:54:21 +01:00
Valentin Gagarin 4f9862fdb9
disable linkcheck for GitHub anchor links (#859)
apparently it got (a lot) worse and GitHub doesn't render README files
statically any more.

this obviates the need of additional instructions.
2024-01-15 10:16:39 +00:00
fricklerhandwerk 21bfef408a host Nix reference manual on nix.dev
this is the most cursed setup you will see any time soon.

we're dumping the Nix manual unchanged into the build tree *after*
building. the reason is that we'd want to link to it from our table of
contents, but because Sphinx does not allow adding arbitrary files to
the build output in arbitrary locations (only `_static` works). but we
want to place the manual behind a particular URL, and the alternative of
maintaining URL rewrites (e.g. in nginx) is not accessible here because the
infrastructure is managed somewhere else.

now that the files won't appear in their desired locations at Sphinx
build time, we can't use relative links to reference them, therefore we
have to resort to pointing to the web URL the manual will appear at.
this is terrible and I'm sorry. please fix this if you have a better
idea. once we use URLs though, we have to avoid linkchecking, since
those files may not be there before deploying them.

figuring all of this out took way longer than anyone would wish.

Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
2023-11-27 07:30:35 +01:00
Silvan Mosberger 614b6fe50f
File sets tutorial (#802)
* source file selection tutorial

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-11-23 17:14:46 +01:00
Silvan Mosberger 37922482b7
Module system deep dive tutorial (#645)
* Draft module system introduction tutorial

* add intro/conclusion, rework prose, follow styleguide, clean diffs

* Review pass

* Apply suggestions from code review

* fix whitespace

* add some more motivation the each section

* make scripts downloadable

* address review comments

* make script actually work

...hopefully. can't test it without Google API key

* add file watching

yes, this looks scary, and yes, it works.

* update diff and wording

* more notes on potential pitfalls

* be explicit which `map` we mean

* split nullable from default values

* also wrap the geocode script

* work through the tutorial to the end

* add tutorial overview

* `lib` is always passed

* add separate section for `evalModules` and fix link

* make option strucutre more self-explanatory

* explain command line invocations

* add note on incomplete reference documentation

* add more highlight to the `config` distinction

* fix parameter passing to the `./map` script

* fix typo

* fix wording

* link to summer of nix

* add missing word

* link to Google Maps API docs

* more explicit requirement

* use correct module system terminology

* Update source/tutorials/module-system/module-system.md

* Apply suggestions from code review

* whitespace

* module-system.md: replace comments with captions

* add missing lang for code-block

* Update module system title

* change most headers to be about module features (#797)

* change most headers to be about module features

Some headers could not be made about module features, and that's a
strong signal that those sections should be removed.

* Apply suggestions from code review

* module-system.md: Fix header casing

Co-authored-by: Alexander Groleau <source@proof.construction>
Co-authored-by: asymmetric <lorenzo@mailbox.org>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-20 17:21:06 +01:00
Alexander Groleau 92e4e1e26b
remove regex that breaks copy button (#690) 2023-08-24 10:21:22 +02:00
Lorenzo Manacorda cf754d4f27 conf.py: enable line numbes for nix, python code 2023-08-18 15:04:39 +02:00
Zach Mitchell 2592019afc Fix more broken links 2023-07-13 06:57:31 -06:00
Yuki Langley ca0dc99eb6 Ignore linkcheck on GitHub file viewer/browser
This is done in order to unbreak CI until a proper solution is found.

Related to https://github.com/NixOS/nix.dev/issues/631
2023-07-07 17:47:55 +07:00
Yuki Langley 145158825d
Generate 404.html (#617) 2023-06-25 17:23:09 +02:00
Yuki Langley 9aaa97a8b0
Make home page cards clickable (#616) 2023-06-25 14:13:20 +02:00
Yuki Langley d426269f96
conf.py: Update repository url and branch (#613) 2023-06-24 14:54:09 +02:00
Yuki Langley c4c366160e
Add Nix snowflake logo (#585)
* Add Nix snowflake logo to sidebar

* Add Nix snowflake favicon

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-06-07 10:41:40 +02:00
Yuki Langley 793206a5e6
Fix invalid sitemap (#586) 2023-06-06 10:15:53 +02:00
Yuki Langley 6f9bad97b1
Add robots.txt (#583) 2023-06-05 03:02:31 +02:00
asymmetric a1d1ce5a98
Merge pull request #562 from NixOS/no-sponsors
Remove mention of corporate sponsors
2023-06-01 11:44:25 +02:00
Lorenzo Manacorda 687c1037d2 Fix config error
Newer Sphinx doesn't accept None, so leaving default of 'en'.
2023-05-29 11:58:25 +02:00
Lorenzo Manacorda 49249e53a4 Remove sponsors from sidebar 2023-05-29 10:03:59 +02:00
Lorenzo Manacorda d65308e6bd Remove sponsors from footer 2023-05-28 19:44:52 +02:00
Lorenzo Manacorda 226cbfcfd5 link sponsors in footer 2023-05-25 13:03:23 +02:00
Lorenzo Manacorda 544a3de332 Sponsors -> Acknowledgments 2023-05-25 13:02:22 +02:00
Lorenzo Manacorda d993a7f59c Revert "Remove mention of corporate sponsors"
This reverts commit bbad27ea9fa8aba79151704bd73438d78eba4ea5.

We're going to mention past sponsors.
2023-05-25 13:02:22 +02:00
Lorenzo Manacorda 9a16562f0a Remove mention of corporate sponsors
Now that the site is owned by the foundation.
2023-05-25 13:02:22 +02:00
Valentin Gagarin 744eeafbda assign copyright to NixOS Foundation
based on Nix documentation team discussion on 2022-07-07
https://discourse.nixos.org/t/2022-07-07-documentation-team-meeting-notes-4/20198

"the author" are now nix.dev contributors, as this is the most accurate
way we can currently represent it. eventually we should provide a way to
credit authorship more precisely.
2023-05-11 20:48:39 +02:00
Zach Mitchell f127d9da6b Add link to linkcheck ignore list 2023-05-06 12:56:18 -06:00
Valentin Gagarin 68ca23955d ignore lesswrong.com on linkcheck
their server returns 403 on CI runs even for valid URLs
2023-03-17 00:59:46 +01:00
olaf 442577eb25
tutorial: nixos configurations on vm (#334)
* tutorial: nixos configurations on vm


Co-authored-by: Benoit de Chezelles <bew@users.noreply.github.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Henrik <i97henka@gmail.com>
2023-03-16 18:37:04 +01:00
Yuki Langley 3937aef0c6 Add sphinx-design extension 2022-12-18 21:29:44 +01:00
Yuki Langley f0239b6a91
Unify information on contributing documentation (#384)
* Unify information on contributing documentation to make it visible on nix.dev itself

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-12-16 08:32:48 +01:00
Yuki Langley a4a6ce812b Rewrite GitHub anchor links to user-content-
Due to an Sphinx issue[1], linkcheck fails on GitHub anchors for
GitHub rendered documents.

This change rewrites the anchors to the ones that can be verified by
linkcheck.

[1]: https://github.com/sphinx-doc/sphinx/issues/9016
2022-11-03 17:36:40 +01:00
Nejc Zupan 5ab8d5a77f Fix leftovers from .rst -> .md migration
Sphinx doesn't care about filetype suffixes so we didn't see any errors.

But it's still nice to do this bit of gardening, I suppose?
2022-10-22 17:21:04 +02:00
Valentin Gagarin ee6f1e1c33 generate anchors down to heading level 3 2022-10-04 08:34:33 +02:00
Simon Bruder dfcbbc0858
add highlighting for shell input/output 2022-09-08 11:09:27 +02:00
Nejc Zupan 02ced7bbff Proof-of-Concept for testing code samples
There are a number of code samples throughout nix.dev. How do we know
they still work? We don't!

This commit introduces a way for us to extract these code samples into files
and then run tests against them in CI. This will hopefully help us catch
regressions in future updates to nix, NixOS and/or this guide.

Additionally, I included a darwin specific nix-shell configuration that I
use personally on my M1 Mac to work on this repo. Might be useful for someone.
2022-04-07 10:16:17 +01:00
Nejc Zupan 54ed4ce8ce Initial support for MyST
For now, we can have both .rst and .md files, so we can do the convertion
to Markdown iteratively.
2021-12-09 12:45:57 +00:00
Domen Kožar efc2a1b34b fix build 2021-10-19 16:42:37 -05:00
Domen Kožar 37cfce678c CI: run linkcheck 2021-08-19 10:01:13 +02:00
Domen Kožar c677998720
Cleanup sidebar 2021-07-20 10:55:50 +02:00
Domen Kožar 00093ddd9f
fix edit button 2021-06-23 19:37:11 +02:00
Domen Kožar d177dba53b
theme: alabaster -> sphinx_book_theme 2021-06-23 18:51:43 +02:00
Domen Kožar 365c3989b0
Tutorial for cross-compilation 2021-06-14 18:59:58 +02:00
Domen Kožar 4189437245
fix linkcheck 2021-06-03 21:21:15 +02:00
Domen Kožar 506d542df8
pypi2nix -> mach-nix 2021-05-14 12:33:37 +02:00
Domen Kožar 39a80a0b11
Allow readers to subscribe to email notifications for new content. 2021-04-30 17:45:17 +02:00
Domen Kožar fffdde905e
fix date 2021-04-06 15:54:27 +02:00
Domen Kožar cc28a13cc7
fix linkcheck 2020-11-18 18:42:27 +01:00
Domen Kožar cab591c6cf
theme: note where the options come from 2020-07-08 10:46:10 +02:00
Domen Kožar 65c2130385
Switch to more modern variation of flask theme, alablaster 2020-07-08 10:44:04 +02:00
Domen Kožar 0d2278384d
Note that Cachix is sponsoring this work 2020-06-16 16:02:14 +02:00
Domen Kožar 481228864a
This page: make it work 2020-06-15 18:06:41 +02:00