-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conversation
To review, run: pip3 install -r docs/requirements.txt
mkdocs serve |
ca06134
to
bed931f
Compare
The navbar on the left is something we can still tweak, and we might want to take a look at the currently quite empty index.md files. |
Can we have a preview link like you did for helm-op? |
Can do, it'll be manual though, as I don't think I can set up webhooks easily. |
The landing page (docs/index.md) looks very boring right now as there's no "toctree: depth 2" kind of thing - maybe there's some plugin to do this? Maybe we should symlink the top-level README.md? |
@dholbach I think the index should contain the diagram and the feature list (like we did for helm-op). I'll make the feature list, please add the diagram for now. |
I think we're mostly good to go now. |
Current URLs for
I'm wondering if we should add redirects for them all? |
To prevent the projects vs organization mix-up: diff --git a/mkdocs.yml b/mkdocs.yml
index fc3b535d..640d52a6 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -1,6 +1,6 @@
-site_name: Flux CD
+site_name: Flux
# site_description:
-site_author: Flux CD Project
+site_author: Flux contributors
site_url: https://docs.fluxcd.io/
# Repository
diff --git a/docs/_static/custom.css b/docs/_static/custom.css
index fa1bff16..0c7edb7a 100644
--- a/docs/_static/custom.css
+++ b/docs/_static/custom.css
@@ -1,29 +1,24 @@
@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");
-@import url("https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap");
body {
font-family: "Montserrat", sans-serif;
}
-.rst-content pre.literal-block, .rst-content div[class^="highlight"] pre, .rst-content .linenodiv pre {
- font-family: "Roboto Mono", monospace;
-}
-
-code {
- font-family: "Roboto Mono", monospace;
-}
-
.md-logo {
- width: 54px;
- height: 54px;
+ width: 40px;
+ height: 40px;
padding-bottom: 2px;
padding-top: 2px;
}
.md-logo img {
- width: 44px;
- height: 44px;
+ width: 40px;
+ height: 40px;
}
-.md-header,.md-footer-nav {
+.md-header, .md-footer-nav {
background-image: linear-gradient(45deg, rgb(0, 150, 225) 0%, rgb(27, 141, 226) 24%, rgb(42, 125, 227) 53%, rgb(53, 112, 227) 78%, rgb(53, 112, 227) 100%);
}
+
+.md-header-nav__title {
+ font-size: .85rem;
+} |
nice one, thanks @hiddeco |
Apparently we can't use mkdocs-redirects for the above.
|
So yeah, for now this is all we can do. Please review and let me know when you want to land this. It'll require changing one setting from "sphinx" to "mkdocs" in the RTD UI. |
68d74bd
to
8a8b0e0
Compare
Do we want something like this https://github.com/weaveworks/wksctl/pull/153/files#diff-b67911656ef5d18c4ae36cb6741b7965L150-R152? The |
Co-Authored-By: Hidde Beydals <hiddeco@users.noreply.github.com>
Co-Authored-By: Hidde Beydals <hiddeco@users.noreply.github.com>
b32a6e4
to
2c043d1
Compare
Co-Authored-By: Hidde Beydals <hiddeco@users.noreply.github.com>
Awesome work, thanks a bunch @dholbach ⭐ |
First cut at moving docs over to
mkdocs
for flux too (follow up from fluxcd/helm-operator#332)