Skip to content

Commit

Permalink
Moved link to OGL text out of the "raw" text
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobord committed Apr 30, 2016
1 parent f88ca08 commit dcab4b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* added the automatic version number on the built HTML page footer (#9).
* small typo fixes in english text.
* Builder refactor (#13).
* Moved link to OGL text out of the "raw" text (#14).

## 1.0.0 (2016-04-22)

Expand Down
7 changes: 4 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ def mkdir(self, path):
if not os.path.isdir(path):
os.makedirs(path)

def write_html(self, target_filepath, body, title, static='static'):
def write_html(self, target_filepath, body, title, prefix=''):
"Write HTML page (body & title) in the target_filepath"
html = self.main_template.substitute(
body=body,
title=title,
static=static,
static=prefix + 'static',
license=prefix + 'license.html',
version=self.version,
git_version=self.git_version,
)
Expand All @@ -93,7 +94,7 @@ def build_dir(self, directory):
target_filepath,
body,
directory,
"../static",
"../",
)

def update_meta(self, directory):
Expand Down
4 changes: 0 additions & 4 deletions english/the-black-hack.md
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,3 @@ Note: columns are *spell slot levels*, lines are *character levels*.
**DM :** Yes. Conjurer, you see the Thief fall rigid to the floor, what do you do?
**Conjurer :** I'll start backing away slowly.
**Thief :** I'll get you in the next life you git!

----

[This website OGL](../license.html)
4 changes: 3 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
<body>
<section>$body</section>
<footer>
<p>This website is made by Bruno Bord - 2016, based on David Black &amp; Peter Regan work -- <a href="https://github.com/brunobord/the-black-hack">Github project</a> -- build: v$git_version ($version)</p>
<p>This website is made by Bruno Bord - 2016, based on David Black &amp; Peter Regan work -- <a href="https://github.com/brunobord/the-black-hack">Github project</a> -- <a href="$license">This website OGL</a> -- build: v$git_version ($version)</p>



</footer>
</body>
Expand Down

0 comments on commit dcab4b5

Please sign in to comment.