Skip to content

Commit

Permalink
switch to docs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Altarya committed Oct 15, 2022
1 parent 4d15b09 commit 2d38a6f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ and here: https://altarya.github.io/Fo-E-PS-HTMLMap/ for the whole thing working
- 2 - Unpack it somewhere
- 3 - Run htmlmap.exe
## As a webpage
- 1 - Run your http server of choice(like npx http-server .\) on (extracted folder)/resources/app/dist
- 1 - Run your http server of choice(like npx http-server .\) on (extracted folder)/resources/app/docs
- 2 - Open the address of the server, and it should be the default page
## Within Foundry Virtual Tabletop
- 1 - Download and enable the HTML To Scene Module
- 2 - Create a new scene
- 3 - Edit Scene properties and open the HTML To Scene tab
- 4 - Enable it
- 5 - On the location, point it to (extracted folder)/resources/app/dist/index.html
- 5 - On the location, point it to (extracted folder)/resources/app/docs/index.html

# How to modify?
Most editing is done by modifying files in assets and config
Expand Down Expand Up @@ -77,7 +77,7 @@ the bundled Electron's) webpage inspector(Inspect Element).
# Why?
I greatly enjoy making maps for tabletop rpg games and such, and up until this project I'd do them on an image editor like Photoshop,
while thats usually perfectly fine, there is a limit to the amount of information density a static map can display without getting cluttered,
plus they lack the ability to measure distances and to search the marked locations. There are many mapping tools available online, most with
plus they lack the ability to measure docsances and to search the marked locations. There are many mapping tools available online, most with
far more features than this will ever have, but I've yet to find one that outputs a file that can be easilly integrated into Foundry, so I took
matters into my own hands.

Expand Down
2 changes: 1 addition & 1 deletion docs/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion load.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function createWindow () {
});

// and load the index.html of the app.
mainWindow.loadFile('./dist/index.html');
mainWindow.loadFile('./docs/index.html');

// Open the DevTools.
// mainWindow.webContents.openDevTools()
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@
"webpack.config.js",
"tsconfig.json",
"jsconfig.json",
"index.html",
"yarn-error.log",
"dist/party-pos.toml",
"docs",
"docs/party-pos.toml",
"node_modules",
"src"
]
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": "./dist/",
"outDir": "./docs/",
"noImplicitAny": true,
"module": "es6",
"target": "es5",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
},
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist'),
path: path.resolve(__dirname, 'docs'),
},
plugins: [
new NodePolyfillPlugin()
Expand Down

0 comments on commit 2d38a6f

Please sign in to comment.