Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and deploy site on Netlify #98

Merged
merged 5 commits into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
rryan marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>