Skip to content
Open
Show file tree
Hide file tree
Changes from 9 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
60 changes: 60 additions & 0 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Sample workflow for building and deploying a mdBook site to GitHub Pages
#
# To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
#
name: Deploy mdBook site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: 0.4.36
steps:
- uses: actions/checkout@v4
- name: Install mdBook
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
rustup update
cargo install --version ${MDBOOK_VERSION} mdbook
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build with mdBook
run: mdbook build docs/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/book

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
17 changes: 4 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -293,22 +293,13 @@ TestMap/
DerailValley/

### Package Builder
# What kind of git nonsense is this...
# Required Assets
!PackageBuilder/
PackageBuilder/*
!PackageBuilder/Assets/
PackageBuilder/Assets/*
!PackageBuilder/Assets/Mapify/
!PackageBuilder/Assets/Mapify.meta
PackageBuilder/Assets/Mapify/Scripts/*
!PackageBuilder/Assets/Mapify/Scripts/*meta
PackageBuilder/Assets/Mapify/Scripts/*.dll
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why were some of these moved to a dedicated .gitignore and some aren't? These changes should be moved to a separate PR so it doesn't block this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea was to have PackageBuilder/.gitignore be a pure, unchanged Unity gitignore file and specify our own additions in the main gitignore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can move the lines concerning PackageBuilder into PackageBuilder/.gitignore if you want?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think that makes sense.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

# Project Settings
!PackageBuilder/ProjectSettings/
PackageBuilder/ProjectSettings/*
!PackageBuilder/ProjectSettings/ProjectSettings.asset
!PackageBuilder/ProjectSettings/EditorSettings.asset
!PackageBuilder/ProjectSettings/PackageManagerSettings.asset
!PackageBuilder/ProjectSettings/ProjectVersion.txt
# Packages
!PackageBuilder/Packages

# docs generated files
docs/book
20 changes: 0 additions & 20 deletions .readthedocs.yaml

This file was deleted.

72 changes: 72 additions & 0 deletions PackageBuilder/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/

# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/

# Recordings can get excessive in size
/[Rr]ecordings/

# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*

# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*

# Visual Studio cache directory
.vs/

# Gradle cache directory
.gradle/

# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db

# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta

# Unity3D generated file on crash reports
sysinfo.txt

# Builds
*.apk
*.aab
*.unitypackage
*.app

# Crashlytics generated file
crashlytics-build.properties

# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*

# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*
6 changes: 6 additions & 0 deletions docs/book.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[book]
title = "Mapify"
authors = ["Insprill", "Tostiman"]

[output.html]
git-repository-url = "https://github.com/Insprill/dv-mapify"
21 changes: 0 additions & 21 deletions docs/contributing/docs.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/index.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/requirements.in

This file was deleted.

64 changes: 0 additions & 64 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,64 +0,0 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile docs/requirements.in
#
certifi==2024.7.4
# via requests
charset-normalizer==3.1.0
# via requests
click==8.1.3
# via mkdocs
colorama==0.4.6
# via mkdocs-material
ghp-import==2.1.0
# via mkdocs
idna==3.7
# via requests
jinja2==3.1.6
# via
# mkdocs
# mkdocs-material
markdown==3.3.7
# via
# mkdocs
# mkdocs-material
# pymdown-extensions
markupsafe==2.1.2
# via jinja2
mergedeep==1.3.4
# via mkdocs
mkdocs==1.4.2
# via
# -r requirements.in
# mkdocs-material
mkdocs-material==9.1.6
# via -r requirements.in
mkdocs-material-extensions==1.1.1
# via mkdocs-material
packaging==23.0
# via mkdocs
pygments==2.15.0
# via mkdocs-material
pymdown-extensions==10.0
# via mkdocs-material
python-dateutil==2.8.2
# via ghp-import
pyyaml==6.0
# via
# mkdocs
# pymdown-extensions
# pyyaml-env-tag
pyyaml-env-tag==0.1
# via mkdocs
regex==2023.3.23
# via mkdocs-material
requests==2.32.4
# via mkdocs-material
six==1.16.0
# via python-dateutil
urllib3==2.5.0
# via requests
watchdog==3.0.0
# via mkdocs
28 changes: 28 additions & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Summary

[Home](./index.md)

# User guide

- [Using maps](./usage/index.md)

# Development

- [Creating maps](./creatingmaps/index.md)
- [Project Setup](./creatingmaps/project-setup.md)
- [Terrain](./creatingmaps/terrain.md)
- [Decoration](./creatingmaps/decoration.md)
- [Railway](./creatingmaps/railway.md)
- [Job Generation](./creatingmaps/jobs.md)
- [Area Blockers](./creatingmaps/area-blockers.md)
- [Service Stations](./creatingmaps/service-stations.md)
- [Stores](./creatingmaps/stores.md)
- [Lighting & Post Processing](./creatingmaps/lighting.md)
- [Exporting Your Map](./creatingmaps/exporting.md)
- [Updating Mapify](./creatingmaps/updating.md)

- [Contributing to Mapify](./contributing/index.md)
- [Building The Project](./contributing/building.md)
- [Building Documentation](./contributing/docs.md)


File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
11 changes: 11 additions & 0 deletions docs/src/contributing/docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Building Documentation

---

To build Mapify's docs, first install mdBook by following the [installation instructions here](https://rust-lang.github.io/mdBook/guide/installation.html).

Run `mdbook serve --open` in the `docs` folder to view the documentation in your webbrowser.

To build the docs, run `mdbook build`.

For information on how mdBook works, check out [their documentation](https://rust-lang.github.io/mdBook/index.html).
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/src/creatingmaps/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Creating maps

So you want to create your own map? Great! Start here: [Project Setup](./creatingmaps/project-setup.md).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Welcome

![Banner](assets/banner.png)

Mapify is a [Derail Valley](https://www.derailvalley.com/) mod for creating and loading custom maps.
Here you can find all the information you'll need to create maps and contribute to the project!

If you want to start creating maps, head to the [Project Setup](./creatingmaps/project-setup.md) page.
If you want to contribute to the project through code or documentation improvements, check out the [Contributing](./contributing/index.md) page.

If you're just a user who wants to install and use maps, visit the [Using maps](./usage/index.md) page.
File renamed without changes.
Loading