From c3b62291baef748a3c61b415019a160e14cb8722 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Wed, 2 Sep 2020 21:44:13 +0200 Subject: [PATCH] Update website --- README.md | 2 +- website/README.md | 38 ++++++++++++++++++++++++ website/elm/Main.elm | 4 +-- website/site/content/docs/feed/_index.md | 9 +++--- website/site/sass/styles.sass | 5 ++++ 5 files changed, 51 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d335c3fc..8d087a06 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://img.shields.io/travis/eikek/docspell/master?style=flat-square)](https://travis-ci.org/eikek/docspell) [![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org) [![License](https://img.shields.io/github/license/eikek/docspell.svg?style=flat-square&color=steelblue)](https://github.com/eikek/docspell/blob/master/LICENSE.txt) -[![Docker Pulls](https://img.shields.io/docker/pulls/eikek0/docspell?color=steelblue)](https://hub.docker.com/r/eikek0/docspell) +[![Docker Pulls](https://img.shields.io/docker/pulls/eikek0/docspell?color=steelblue&style=flat-square)](https://hub.docker.com/r/eikek0/docspell) [![Gitter chat](https://img.shields.io/gitter/room/eikek/docspell?style=flat-square&color=steelblue)](https://gitter.im/eikek/docspell) # Docspell diff --git a/website/README.md b/website/README.md index 2dbebd8d..d78c17e7 100644 --- a/website/README.md +++ b/website/README.md @@ -28,3 +28,41 @@ nix-shell --run "cd site && zola serve" ``` Open browser at `localhost:1111`. + + +## Publishing + +``` shell +nix-shell website/shell.nix --run sbt +sbt> project website +``` + +### Check Links + +``` scala +sbt> zolaBuild +sbt> zolaCheck +``` + +### Testing + +``` scala +sbt> zolaBuildTest +sbt> ghpagesSynchLocal +``` + +Other terminal: + +``` shell +cd ~/.sbt/ghpages//com.github.eikek/docspell-website +python -m SimpleHTTPServer 1234 +``` + +Open http://localhost:1234 in a browser. + +### Publish + +``` scala +sbt> zolaBuild +sbt> ghpagesPushSite +``` diff --git a/website/elm/Main.elm b/website/elm/Main.elm index 596fe6c4..22828d2e 100644 --- a/website/elm/Main.elm +++ b/website/elm/Main.elm @@ -315,8 +315,8 @@ mainHero model = , h2 [ class "subtitle is-3" ] [ text "Simple document organizer" ] - , p [ class "content is-medium" ] - [ text "Docspell can assist in organizing your piles of " + , p [ class "content is-medium narrow-center" ] + [ text "Docspell assists in organizing your piles of " , text "digital documents, resulting from scanners, e-mails " , text "and other sources with miminal effort." ] diff --git a/website/site/content/docs/feed/_index.md b/website/site/content/docs/feed/_index.md index 2187a2d4..a7568e2c 100644 --- a/website/site/content/docs/feed/_index.md +++ b/website/site/content/docs/feed/_index.md @@ -32,7 +32,7 @@ This requires to login at the webapp. Since this is complicated from other applications, you can create custom hard-to-guess endpoints to use with the following options. -# Scanners +# Watch Directories If you have a (document) scanner (or think about getting one), it can usually be configured to place scanned documents as image or PDF files @@ -90,9 +90,10 @@ This is a little more involved, but can be quite nice. A SMTP server can be setup that simply uploads incoming mails to Docspell (using curl), instead of storing the mails on disk. This requires some knowledge to setup such a server and it makes sense to own a domain. -The SMTP server would accept mails to *[your-username]@[your-domain]* -and resolves the *[your-username]* part in Docspell to upload the -files to the correct account. +Or it can be used internally to connect devices like scanners that +offer a scan-to-mail option. The SMTP server would accept mails to +*[your-username]@[your-domain]* and resolves the *[your-username]* +part in Docspell to upload the files to the correct account. There is a docker container prepared to get started. Click below to read more. diff --git a/website/site/sass/styles.sass b/website/site/sass/styles.sass index 4eac0ffa..a6744afd 100644 --- a/website/site/sass/styles.sass +++ b/website/site/sass/styles.sass @@ -106,3 +106,8 @@ p.has-text font-size: 1.1em max-width: $desktop text-align: left + +.content.narrow-center + margin-left: auto + margin-right: auto + max-width: $tablet