mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Added Static Files
This commit is contained in:
parent
9144dbcfc8
commit
15e395e151
@ -1,6 +1,11 @@
|
|||||||
{% extends "base.jinja2" %}
|
{% extends "base.jinja2" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="row mb-3">
|
||||||
|
<div class="col text-center">
|
||||||
|
<img class="img-fluid" src="/static/images/home_logo.png" alt="New Horizons Logo"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<h1>Welcome!</h1>
|
<h1>Welcome!</h1>
|
||||||
@ -8,7 +13,33 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<p>This is the official documentation for New Horizons</p>
|
<p>This is the official documentation for <a class="link-primary" target="_blank" rel="noopener" href="https://github.com/xen-42/outer-wilds-new-horizons">New Horizons</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<h2>Getting Started</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<p>There is a template here if you want to release your own planet mod using configs. You can learn how the configs work by picking apart the Real Solar System mod or the New Horizons Examples mod.</p>
|
||||||
|
<p>Planets are created using a JSON file format structure, and placed in a folder called planets (or in any sub-directory of it) in the location where New Horizons is installed (by default this folder doesn't exist, you have to create it within the xen.NewHorizons directory).</p>
|
||||||
|
<p>To locate this directory, click the "⋮" symbol next to "New Horizons" in the Outer Wilds Mod Manager and then click "show in explorer" in the pop-up.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<figure class="figure">
|
||||||
|
<img src="/static/images/home/mod_manager_dots.png" class="figure-img img-fluid rounded" alt="Click the three dots in the mod manager">
|
||||||
|
<figcaption class="figure-caption text-end">Click the ⋮</figcaption>
|
||||||
|
</figure>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<figure class="figure">
|
||||||
|
<img src="/static/images/home/create_planets.png" class="figure-img img-fluid rounded" alt="Create a new folder named "planets"">
|
||||||
|
<figcaption class="figure-caption text-end">Create a new folder named "planets"</figcaption>
|
||||||
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
|
import os
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from shutil import copytree
|
||||||
|
|
||||||
from jinja2 import Environment, PackageLoader, select_autoescape
|
from jinja2 import Environment, PackageLoader, select_autoescape
|
||||||
from json_schema_for_humans.schema.schema_importer import get_schemas_to_render
|
from json_schema_for_humans.schema.schema_importer import get_schemas_to_render
|
||||||
@ -66,6 +68,20 @@ def template_override(template, intermediate_schema, inter_page):
|
|||||||
return rendered
|
return rendered
|
||||||
|
|
||||||
|
|
||||||
|
print("Initializing")
|
||||||
|
|
||||||
|
|
||||||
|
if os.path.exists("out"):
|
||||||
|
os.rmdir("out")
|
||||||
|
|
||||||
|
print("Copying Static")
|
||||||
|
|
||||||
|
copytree("static", "out")
|
||||||
|
|
||||||
|
os.makedirs("out/schemas")
|
||||||
|
|
||||||
|
print("Rendering Pages")
|
||||||
|
|
||||||
for page in pages:
|
for page in pages:
|
||||||
page.render(schemas=schemas)
|
page.render(schemas=schemas)
|
||||||
|
|
||||||
|
|||||||
BIN
docs/static/images/home/create_planets.png
vendored
Normal file
BIN
docs/static/images/home/create_planets.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
docs/static/images/home/home_logo.png
vendored
Normal file
BIN
docs/static/images/home/home_logo.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 558 KiB |
BIN
docs/static/images/home/mod_manager_dots.png
vendored
Normal file
BIN
docs/static/images/home/mod_manager_dots.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
2
docs/static/robots.txt
vendored
Normal file
2
docs/static/robots.txt
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
Loading…
x
Reference in New Issue
Block a user