mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
Remove other now obsolete nix files
This commit is contained in:
@ -15,19 +15,20 @@ Sbt is used to build the site.
|
||||
|
||||
Install things by running `yarn install`.
|
||||
|
||||
Open terminal for each script below:
|
||||
Use a dev [environment](https://docspell.org/docs/dev/development/)
|
||||
and open terminal for each script below:
|
||||
|
||||
1. Starting the server
|
||||
``` shell
|
||||
nix-shell --run "cd site && zola serve"
|
||||
cd site && zola serve
|
||||
```
|
||||
2. Building the stylesheet
|
||||
``` shell
|
||||
nix-shell --run ./scripts/run-styles.sh
|
||||
./scripts/run-styles.sh
|
||||
```
|
||||
3. Building some javascript files
|
||||
``` shell
|
||||
nix-shell --run ./scripts/run-elm.sh
|
||||
./scripts/run-elm.sh
|
||||
```
|
||||
|
||||
Open browser at `localhost:1111`.
|
||||
@ -40,7 +41,7 @@ be finally deployed. To see this, start sbt and change into the
|
||||
website project.
|
||||
|
||||
``` shell
|
||||
nix-shell website/shell.nix --run sbt
|
||||
$ sbt
|
||||
sbt> project website
|
||||
```
|
||||
|
||||
|
@ -37,7 +37,7 @@ git clone git@github.com:eikek/docspell.git "$temp"
|
||||
cd "$temp" && git checkout --track origin/gh-pages && rm -rf "$temp"/*
|
||||
|
||||
echo "Create new website from current working directory"
|
||||
cd $cdir && nix-shell website/shell.nix --run 'sbt make-website'
|
||||
cd $cdir && sbt make-website
|
||||
|
||||
echo "Copying new site to target"
|
||||
cp -R "$cdir"/website/target/zola-site/* "$temp/"
|
||||
|
@ -1,19 +0,0 @@
|
||||
let
|
||||
nixpkgs = builtins.fetchTarball {
|
||||
url = "channel:nixos-23.05";
|
||||
#url = "https://github.com/NixOS/nixpkgs/archive/e6badb26fc0d238fda2432c45b7dd4e782eb8200.tar.gz";
|
||||
#url = "https://github.com/NixOs/nixpkgs/archive/0f316e4d72daed659233817ffe52bf08e081b5de.tar.gz"; #21.11
|
||||
};
|
||||
pkgs = import nixpkgs {};
|
||||
in
|
||||
with pkgs;
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
zola
|
||||
yarn
|
||||
sbt
|
||||
elmPackages.elm
|
||||
nodejs
|
||||
inotifyTools
|
||||
];
|
||||
}
|
@ -63,11 +63,11 @@ you can look at the results while writing.
|
||||
|
||||
If you want to see a live view of the page while editing, some tools
|
||||
are required. The easiest way to get these is to install
|
||||
[nix](https://nixos.org/) and run `nix-shell website/shell.nix` to get
|
||||
an environment with all these tools installed. Otherwise install the
|
||||
programs mentioned in `website/shell.nix`, which are:
|
||||
[yarn](https://yarnpkg.com/), [zola](https://www.getzola.org/),
|
||||
[elm](https://elm-lang.org) and [sbt](https://scala-sbt.org).
|
||||
[nix](https://nixos.org/) and run `nix develop .#dev-vm` to get an
|
||||
environment with all these tools installed. Otherwise install the
|
||||
programs: [yarn](https://yarnpkg.com/),
|
||||
[zola](https://www.getzola.org/), [elm](https://elm-lang.org) and
|
||||
[sbt](https://scala-sbt.org).
|
||||
|
||||
Then clone the sources to your machine and build the complete site
|
||||
once, so that all assets and required stuff is present:
|
||||
|
Reference in New Issue
Block a user