Skip to content

Commit 74eca7d

Browse files
committed
Fix GitHub pages style sheet
Previously, Jekyll assumed that assets can be found in a top-level directory which is not actually the case.
1 parent 6a45bc0 commit 74eca7d

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ nix build # Flake version
6666
```
6767
In case you are using Nix Flakes, you can skip cloning the repository as usual: `nix build github:VariantSync/DiffDetective#.`
6868

69-
Afterward, the [result](result) symlink points to the [Javadoc](result/share/github-pages/docs/javadoc/index.html), the [DiffDetective jar](result/share/java/DiffDetective/DiffDetective.jar) and a simple [script](result/bin/DiffDetective) for executing a DiffDetective main class provided as argument (e.g., evaluations used in previous research, see below under 'Publications').
69+
Afterward, the [result](result) symlink points to the [Javadoc](result/share/github-pages/DiffDetective/docs/javadoc/index.html), the [DiffDetective jar](result/share/java/DiffDetective/DiffDetective.jar) and a simple [script](result/bin/DiffDetective) for executing a DiffDetective main class provided as argument (e.g., evaluations used in previous research, see below under 'Publications').
7070

7171
## Publications
7272

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
theme: jekyll-theme-cayman
1+
theme: jekyll-theme-cayman
2+
baseurl: DiffDetective

default.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pkgs.stdenv.mkDerivation rec {
7373
if buildGitHubPages
7474
then ''
7575
mvn javadoc:javadoc
76-
PAGES_REPO_NWO=VariantSync/DiffDetective JEKYLL_BUILD_REVISION= github-pages build
76+
JEKYLL_ENV=production PAGES_REPO_NWO=VariantSync/DiffDetective JEKYLL_BUILD_REVISION= github-pages build
7777
''
7878
else ""
7979
}
@@ -102,7 +102,8 @@ pkgs.stdenv.mkDerivation rec {
102102
${
103103
if buildGitHubPages
104104
then ''
105-
cp -r _site "$out/share/github-pages"
105+
mkdir "$out/share/github-pages"
106+
cp -r _site "$out/share/github-pages/DiffDetective"
106107
''
107108
else ""
108109
}

0 commit comments

Comments
 (0)