-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (39 loc) · 1.98 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<script src="./engine/sparatiro.js"></script>
*(this page is a mirror of the repo's [README](https://github.com/Katamori/sparatiro/blob/master/README.md))*
# Welcome to Sparatiro!
An extremely small wiki engine built on minimalism.
The basic idea is to have HTML files as the wiki pages containing nothing more than the sparatiro.jsand a custom text
Under heavy development.
# How to use
engine contains every underlying mechanics. Don't modify it if possible.
## Dependencies
The engine contains the following third-party scripts:
* [jQuery 3.3.1](https://jquery.com/) - compressed
* [MarkdownJS by Dominic "evilstreak" Baggott](https://github.com/evilstreak/markdown-js) - browser build
These are loaded on every article you visit.
## Simple pages
Create an HTML file, but instead of the regular tags, include only `engine/sparatiro.js` with a `script` tag.
## Namespaces
Namespaces are defined in the title (that is, the filename) separated by `~`.
## Article index
Since Sparatiro is backend-agnostic, the only way of implementing features involving search (e.g. wanted pages, content, what links here) is by maintaining a manual article index by yourself.
The article index file is `settings/index.json` and you can use it by simply listing them as in the example.
For security and usability reasons, "unindexed" pages (HTML files with name not appearing in the index) won't be rendered by Sparatiro.
## Development
### Modules
As of 2018-10-11, Sparatiro Modules are JS files containing functions used quite anywhere.
# TO-DO
* article index implementation
* interrupt init on unindexed articles
* utilize Promise rejects for that
* colorize 404 URLs
* implement reserved names
* index display
* random
* wanted pages
* better 404
* A huge refactor on naming
* Try to make an universal header without extra framework
* Merging design from "beta" branch as an optional display method
* Abandon jQuery altogether
* is that even possible?