diff options
Diffstat (limited to 'website')
-rw-r--r-- | website/default.nix | 3 | ||||
-rw-r--r-- | website/habits/default.nix | 13 | ||||
-rw-r--r-- | website/index.html | 3 |
3 files changed, 19 insertions, 0 deletions
diff --git a/website/default.nix b/website/default.nix index 2349b5cd9e6f..474a6cd4b0c7 100644 --- a/website/default.nix +++ b/website/default.nix @@ -9,5 +9,8 @@ pkgs.stdenv.mkDerivation { mkdir -p $out/goals cp -r ${briefcase.website.goals}/* $out/goals + + mkdir -p $out/habits + cp ${briefcase.website.habits} $out/habits/index.html ''; } diff --git a/website/habits/default.nix b/website/habits/default.nix new file mode 100644 index 000000000000..e2655846e0cf --- /dev/null +++ b/website/habits/default.nix @@ -0,0 +1,13 @@ +{ pkgs, ... }: + +pkgs.stdenv.mkDerivation { + name = "habits-webpage"; + src = ../../org; + buildInputs = []; + buildPhase = '' + ${pkgs.pandoc}/bin/pandoc $src/habits.org -o index.html + ''; + installPhase = '' + mv index.html $out + ''; +} diff --git a/website/index.html b/website/index.html index 47bba805edbc..6ad409bc1d99 100644 --- a/website/index.html +++ b/website/index.html @@ -13,6 +13,9 @@ <li> <a href="/goals">Goals</a> </li> + <li> + <a href="/habits">Habits</a> + </li> </ul> <li>Other</li> <ul> |