Skip to content

Commit 0dc9742

Browse files
committed
Prototype Mapbase website
1 parent ebf7efd commit 0dc9742

File tree

424 files changed

+23295
-66
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

424 files changed

+23295
-66
lines changed

docs/.gitignore renamed to .gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ _site
44
.jekyll-metadata
55
vendor
66
Gemfile.lock
7+
8+
# Tool artifacts
9+
tools/*.fgd
10+
tools/*.mp4
11+
tools/*.gif
12+
tools/*.txt

docs/404.html renamed to 404.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</style>
1919

2020
<div class="container">
21+
<img src="{{ "/" | relative_url }}assets/entities/what2.png" width="250" height="250" title="What?" alt="..."/>
2122
<h1>404</h1>
2223

2324
<p><strong>Page not found :(</strong></p>
File renamed without changes.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Mapbase GitHub Pages Site
2+
3+
This is Mapbase's GitHub Pages website. It is generated using Jekyll and is derived from the Minima theme.
4+
5+
File structure:
6+
7+
* docs - Documentation pages
8+
* assets - Assets used by pages
9+
* js - JavaScript scripts used by pages
10+
* tools - Scripts used to assist in developing the site
11+
12+
---
13+
14+
`tools` scripts depend on [pySourceSDK's ValveFGD](https://github.com/pySourceSDK/ValveFGD) for FGD parsing and ffmpeg for gif conversion.

docs/_config.yml renamed to _config.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,27 @@
2121
title: Mapbase
2222
email: acj3017@gmail.com
2323
description: >- # this means to ignore newlines until "baseurl:"
24-
The website for Mapbase, an open-source enhancement of the Source SDK that targets mappers and modders.
25-
baseurl: "/mapbase-github-io/docs/" # the subpath of your site, e.g. /blog
24+
An open-source enhancement for the Source SDK that targets mappers and modders.
25+
baseurl: "" # the subpath of your site, e.g. /blog
2626
url: "https://mapbase.github.io" # the base hostname & protocol for your site, e.g. http://example.com
2727
#twitter_username: jekyllrb
2828
github_username: mapbase-source
29+
moddb_modpage: mapbase
30+
moddb_modname: Mapbase
31+
32+
parse_block_html: true
2933

3034
# Build settings
3135
theme: minima
3236
plugins:
3337
- jekyll-feed
3438

39+
header_pages:
40+
- about.markdown
41+
- getting-started.markdown
42+
- docs.markdown
43+
- credits.markdown
44+
3545
# Exclude from processing.
3646
# The following items will not be processed, by default.
3747
# Any item listed under the `exclude:` key here will be automatically added to
@@ -40,14 +50,6 @@ plugins:
4050
# Excluded items can be processed by explicitly listing the directories or
4151
# their entries' file path in the `include:` list.
4252
#
43-
# exclude:
44-
# - .sass-cache/
45-
# - .jekyll-cache/
46-
# - gemfiles/
47-
# - Gemfile
48-
# - Gemfile.lock
49-
# - node_modules/
50-
# - vendor/bundle/
51-
# - vendor/cache/
52-
# - vendor/gems/
53-
# - vendor/ruby/
53+
exclude:
54+
- tools/
55+
- docs/ents/ # TEMP

_includes/banner_obsolete.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="banner banner-obsolete"><img class="banner-icon" src="{{ "/" | relative_url }}assets/entities/obsolete.png"/><div class="banner-content">
2+
{% if include.reason and include.reason != "" %}
3+
This {{ include.subject }} is considered obsolete for the following reason(s):<br><i style="margin:16px;">{{ include.reason }}</i><br>
4+
{% else %}
5+
This {{ include.subject }} is considered obsolete.
6+
{% endif %}
7+
Its use is discouraged and it may not fully function.
8+
</div></div>

_includes/banner_version.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<div class="banner banner-version banner-version-{{ include.version | replace: ".", "-" }}"><img class="banner-icon" src="{{ "/" | relative_url }}assets/website_icon_alert1.png"/><div class="banner-content">
2+
{% assign version_char = include.version | slice: 0 %}
3+
{% if version_char and version_char == 'v' %}
4+
{% assign version = "Mapbase " %}
5+
{% assign version = version | append: include.version %}
6+
{% assign version_post = " or newer" %}
7+
{% elsif include.version == "MP" %}
8+
{% assign version = "the Mapbase MP branch" %}
9+
{% else %}
10+
{% assign version = include.version %}
11+
{% endif %}
12+
This feature is exclusive to <strong>{{ version }}</strong>{{ version_post }}.
13+
</div></div>

_includes/bug.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div class="inline-note inline-note-bug"><strong>🐞 Bug: </strong><span class="inline-note-content">{{ include.txt }}</span></div>

_includes/cvar.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<tr>
2+
<td class="ent_list_name">{% if include.name and include.name != "" %}<code>{{ include.name }}</code>{% endif %}</td>
3+
<td class="ent_list_name">{% if include.def and include.def != "" %}<code>{{ include.def }}</code>{% endif %}</td>
4+
<td class="ent_list_name">{% if include.type and include.type != "" %}<code>{{ include.type }}</code>{% endif %}</td>
5+
<td class="ent_list_summary">{{ include.desc }}</td>
6+
</tr>

_includes/docs_feature_button.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<div class="feature_column feature_column_triple">
2+
<a class="feature_button" title="{{ include.desc }}" href="{{ include.url }}" onmouseenter="ShowBackground(this)" onmouseleave="HideBackground(this)">
3+
<div class="feature_box">
4+
<span class="feature_background" style="background-image: url('{{ include.bg }}')"></span>
5+
<span class="feature_background_color"></span>
6+
<div style="width:20%;">
7+
<img class="feature_icon" style="width:50px;" src="{{ "/" | relative_url }}{{ include.icon }}"/>
8+
</div>
9+
<div class="feature_text">
10+
<p>{{ include.text }}</p>
11+
</div>
12+
</div>
13+
</a>
14+
</div>

0 commit comments

Comments
 (0)