Skip to content

Commit

Permalink
rename _libraries to daux_libraries and _search_index to daux_search_…
Browse files Browse the repository at this point in the history
…index otherwise github pages makes the files invisible
  • Loading branch information
onigoetz committed Sep 23, 2019
1 parent 3acee28 commit e796fad
Show file tree
Hide file tree
Showing 15 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COPY bin/ /daux/bin/
COPY libs/ /daux/libs/
COPY templates/ /daux/templates/
COPY themes/ /daux/themes/
COPY _libraries/ /daux/_libraries/
COPY daux_libraries/ /daux/daux_libraries/
COPY global.json /daux/global.json
COPY index.php /daux/index.php

Expand Down
1 change: 0 additions & 1 deletion _libraries/search.min.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion crafty.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
search: {
runner: "rollup",
source: "src/js/search/index.js",
destination: "_libraries/search.min.js"
destination: "daux_libraries/search.min.js"
},
theme_daux: {
runner: "rollup",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion _libraries/search.min.js → daux_libraries/search.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions daux_libraries/search.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions libs/Format/HTML/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ function() use ($destination, $params) {
$this->generateRecursive($this->daux->tree, $destination, $params, $output, $width, $params['html']['search']);

GeneratorHelper::copyRecursive(
$this->daux->local_base . DIRECTORY_SEPARATOR . '_libraries' . DIRECTORY_SEPARATOR,
$destination . DIRECTORY_SEPARATOR . '_libraries'
$this->daux->local_base . DIRECTORY_SEPARATOR . 'daux_libraries' . DIRECTORY_SEPARATOR,
$destination . DIRECTORY_SEPARATOR . 'daux_libraries'
);

if ($params['html']['search']) {
file_put_contents(
$destination . DIRECTORY_SEPARATOR . '_search_index.json',
$destination . DIRECTORY_SEPARATOR . 'daux_search_index.json',
json_encode(['pages' => $this->indexed_pages])
);

Expand Down
2 changes: 1 addition & 1 deletion src/js/search/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SearchEngine {
descriptiveWords: 25,
highlightTerms: true,
highlightEveryTerm: false,
contentLocation: "_search_index.json",
contentLocation: "daux_search_index.json",
...options
};

Expand Down
2 changes: 1 addition & 1 deletion src/js/theme_daux/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if (codeBlocks.length) {
script = document.createElement("script");
script.type = "text/javascript";
script.async = true;
script.src = `${window.base_url}_libraries/highlight.pack.js`;
script.src = `${window.base_url}daux_libraries/highlight.pack.js`;
script.onload = function(src) {
[].forEach.call(codeBlocks, window.hljs.highlightBlock);
};
Expand Down
2 changes: 1 addition & 1 deletion templates/layout/00_layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

<?php if ($params['html']['search']) { ?>
<!-- Search -->
<link href="<?= $base_url; ?>_libraries/search.css" rel="stylesheet">
<link href="<?= $base_url; ?>daux_libraries/search.css" rel="stylesheet">
<?php } ?>
</head>
<body class="<?= $this->section('classes'); ?>">
Expand Down
2 changes: 1 addition & 1 deletion templates/partials/search_script.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</script>

<!-- Search -->
<script type="text/javascript" src="<?php echo $base_url; ?>_libraries/search.min.js"></script>
<script type="text/javascript" src="<?php echo $base_url; ?>daux_libraries/search.min.js"></script>

<script>
window.search({'base_url': '<?php echo $base_url?>'})
Expand Down
2 changes: 1 addition & 1 deletion themes/daux/js/daux.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion themes/daux/js/daux.min.js.map

Large diffs are not rendered by default.

0 comments on commit e796fad

Please sign in to comment.