Skip to content

Commit

Permalink
Merge pull request #98 from Holzhaus/netlify
Browse files Browse the repository at this point in the history
Build and deploy site on Netlify
  • Loading branch information
rryan authored Jul 2, 2020
2 parents e4d761f + b2cc5e9 commit 15b7b2e
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 4 deletions.
2 changes: 2 additions & 0 deletions _redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/manual/* https://holzhaus-mixxx-manual.netlify.app/:splat 302
/* /error/ 404
2 changes: 1 addition & 1 deletion config.de-DE.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"prettify": true,
"locale": "de-de",
"site-url": "http://www.mixxx.org/de-DE/"
"site-url": "de-DE/"
}
2 changes: 1 addition & 1 deletion config.de.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"prettify": true,
"locale": "de",
"site-url": "http://www.mixxx.org/de/"
"site-url": "de/"
}
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"prettify": true,
"locale": "en",
"site-url": "http://www.mixxx.org/"
"site-url": ""
}
10 changes: 10 additions & 0 deletions netlify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
# Build the site (outputs into .build directory)
cactus build -v

# Rename the ".build" directory to "build" (Netlify seems to have problems with
# the leading dot in the name)
mv .build build

# Copy redirect configuration to build directory
cp _redirects build/
14 changes: 14 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = ""

# Default build command.
command = "sh netlify.sh"

# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "build/"
3 changes: 2 additions & 1 deletion templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ <h2 class="docs-header">About</h2>

<div style="text-align:center">
&copy; 2001-2020 Mixxx Development Team<br>
Logo by Paul Bloch
Logo by Paul Bloch<br>
<a href="https://www.netlify.com/" target="_blank">This site is powered by Netlify.</a>
</div>
</div>

0 comments on commit 15b7b2e

Please sign in to comment.