Переглянути джерело

Improved the look of the fronpage of the site.

Matthew Carr 1 рік тому
батько
коміт
45586b46a0

+ 6 - 4
doc/build-docs.sh

@@ -3,8 +3,10 @@
 # NOTE: This script must be run from the "./doc" subdirectory of the repo.
 set -e
 
-RUSTDOCFLAGS="--index-page $PWD/../README.md -Zunstable-options --markdown-css /fuckface.css --markdown-no-toc"\
-  cargo +nightly doc
+RUSTDOCFLAGS="--index-page $PWD/../README.md -Zunstable-options --markdown-css rustdoc/rust.css --markdown-no-toc"\
+  cargo doc --no-deps
 cd ..
-cp -r target/doc website/static/rustdoc
-cp doc/rust.css website/static/rustdoc
+rsync -ra --delete target/doc/ website/static/rustdoc/
+cp doc/rust.css website/static/rustdoc
+cd website
+hugo

+ 11 - 11
website/config.toml

@@ -164,11 +164,11 @@ enable = false
 
 [params.links]
 # End user relevant links. These will show up on left side of footer and in the community page if you have one.
-[[params.links.user]]
-  name = "User mailing list"
-  url = "https://example.org/mail"
-  icon = "fa fa-envelope"
-  desc = "Discussion and help from your fellow users"
+#[[params.links.user]]
+#  name = "User mailing list"
+#  url = "https://example.org/mail"
+#  icon = "fa fa-envelope"
+#  desc = "Discussion and help from your fellow users"
 #[[params.links.user]]
 #  name ="Twitter"
 #  url = "https://example.org/twitter"
@@ -176,7 +176,7 @@ enable = false
 #  desc = "Follow us on Twitter to get the latest news!"
 [[params.links.user]]
   name = "Stack Overflow"
-  url = "https://example.org/stack"
+  url = "https://stackoverflow.com/questions/tagged/blocktree"
   icon = "fab fa-stack-overflow"
   desc = "Practical questions and curated answers"
 # Developer relevant links. These will show up on right side of footer and in the community page if you have one.
@@ -190,11 +190,11 @@ enable = false
 #  url = "https://example.org/slack"
 #  icon = "fab fa-slack"
 #  desc = "Chat with other project developers"
-[[params.links.developer]]
-  name = "Developer mailing list"
-  url = "https://example.org/mail"
-  icon = "fa fa-envelope"
-  desc = "Discuss development issues around the project"
+#[[params.links.developer]]
+#  name = "Developer mailing list"
+#  url = "https://example.org/mail"
+#  icon = "fa fa-envelope"
+#  desc = "Discuss development issues around the project"
 
 # hugo module configuration
 

+ 19 - 43
website/content/en/_index.html

@@ -3,69 +3,45 @@ title = "Blocktree"
 linkTitle = "Blocktree"
 +++
 
-{{< blocks/cover title="Blocktree: A platform for distributed computing." image_anchor="top" >}}
+{{< blocks/cover title="Blocktree" image_anchor="top" height="max">}}
 <div class="mx-auto">
+	<h2>A platform for distributed computing.</h2>
 	<a class="btn btn-lg btn-primary mr-3 mb-4" href="{{< relref "/docs" >}}">
 		Learn More <i class="fas fa-arrow-alt-circle-right ml-2"></i>
 	</a>
 	<a class="btn btn-lg btn-secondary mr-3 mb-4" href="https://gogs.delease.com/Delease/Blocktree">
 		Download <i class="fa-solid fa-download ml-2 "></i>
 	</a>
-	<p class="lead mt-5">Distributed systems don't have to be hard.</p>
-	{{< blocks/link-down color="info" >}}
+	<p class="lead mt-5">
+		Blocktree organizes apps and devices into a cooperative unit called a blocktree. Think of
+		it as a mixture of a directory service, network filesystem, public key infrastructure, and
+		a message bus, with additional benefits that come from integrating these services.
+	</p>
 </div>
 {{< /blocks/cover >}}
 
 
 {{% blocks/lead color="primary" %}}
-Goldydocs provides a single web UI providing visibility into porridge temperature, chair size, and
-bed softness metrics! You can even find out who's been eating **your** porridge.
+Blocktree is still under active development. __Do not__ use it to protect sensitive information
+or run mission critical services. Checkout the [docs](./docs) to see what Blocktree
+can do today.
 {{% /blocks/lead %}}
 
-{{< blocks/section color="dark" >}}
-{{% blocks/feature icon="fa-lightbulb" title="New chair metrics!" %}}
-The Goldydocs UI now shows chair size metrics by default.
-
-Please follow this space for updates!
-{{% /blocks/feature %}}
-
-
-{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}}
-We do a [Pull Request](https://github.com/google/docsy-example/pulls) contributions workflow on **GitHub**. New users are always welcome!
-{{% /blocks/feature %}}
-
-
-{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/docsydocs" %}}
-For announcement of latest features etc.
-{{% /blocks/feature %}}
-
-
-{{< /blocks/section >}}
-
-
-{{< blocks/section >}}
-<div class="col">
-<h1 class="text-center">This is the second Section</h1>
-</div>
-
-{{< /blocks/section >}}
-
 
+{{< blocks/section color="dark" >}}
 
-{{< blocks/section >}}
-{{% blocks/feature icon="fab fa-app-store-ios" title="Download **from AppStore**" %}}
-Get the Goldydocs app!
+{{% blocks/feature icon="fa-solid fa-folder" title="Network Filesystem" url="./rustdoc/btfuse/index.html" %}}
+Your blocktree is a unified view of your network. It can be mounted with a FUSE daemon.
 {{% /blocks/feature %}}
 
-
-{{% blocks/feature icon="fab fa-github" title="Contributions welcome!" url="https://github.com/google/docsy-example" %}}
-We do a [Pull Request](https://github.com/google/docsy-example/pulls) contributions workflow on **GitHub**. New users are always welcome!
+{{% blocks/feature icon="fa-solid fa-lock" title="Cryptographic Security"  url="./rustdoc/btlib/crypto/index.html" %}}
+Information on disk is provided with confidentiality and integrity protection. Key management is
+as simple as changing filesystem permissions.
 {{% /blocks/feature %}}
 
-
-{{% blocks/feature icon="fab fa-twitter" title="Follow us on Twitter!" url="https://twitter.com/GoHugoIO" %}}
-For announcement of latest features etc.
+{{% blocks/feature icon="fa-solid fa-envelope" title="Message Passing" url="./rustdoc/btmsg/index.html" %}}
+Apps can send each other messages using blocktree paths. The system mutually authenticates all
+connections to ensure your messages reach their intended recipient.
 {{% /blocks/feature %}}
 
-
 {{< /blocks/section >}}

+ 18 - 0
website/content/en/docs/Tutorials/docker.md

@@ -0,0 +1,18 @@
+---
+title: "Docker"
+date: 2023-04-24
+weight: 5
+description: >
+  Showes how to use the docker containers to create and mount a new filesystem.
+---
+
+{{% pageinfo %}}
+This tutorial shows how to create a new file system, serve it with a docker container,
+then mount it on the host system.
+{{% /pageinfo %}}
+
+
+
+```
+This is the final element on the page and there should be no margin below this.
+```

+ 0 - 0
website/content/en/docs/Tasks/Ponycopters/_index.md → website/content/off/Tasks/Ponycopters/_index.md


+ 0 - 0
website/content/en/docs/Tasks/Ponycopters/configuring-ponycopters.md → website/content/off/Tasks/Ponycopters/configuring-ponycopters.md


+ 0 - 0
website/content/en/docs/Tasks/Ponycopters/launching-ponycopters.md → website/content/off/Tasks/Ponycopters/launching-ponycopters.md


+ 0 - 0
website/content/en/docs/Tasks/_index.md → website/content/off/Tasks/_index.md


+ 0 - 0
website/content/en/docs/Tasks/beds.md → website/content/off/Tasks/beds.md


+ 0 - 0
website/content/en/docs/Tasks/porridge.md → website/content/off/Tasks/porridge.md


+ 0 - 0
website/content/en/docs/Tasks/task.md → website/content/off/Tasks/task.md


+ 0 - 0
website/content/en/docs/Contribution guidelines/_index.md → website/content/off/docs/Contribution guidelines/_index.md


+ 0 - 0
website/content/en/docs/Reference/parameter-reference.md → website/content/off/docs/Reference/parameter-reference.md


+ 0 - 0
website/content/en/docs/Tutorials/multi-bear.md → website/content/off/docs/Tutorials/multi-bear.md


+ 0 - 0
website/content/en/docs/Tutorials/tutorial2.md → website/content/off/docs/Tutorials/tutorial2.md