Added a README
This commit is contained in:
parent
b3ba50ad26
commit
1aa58ac243
9 changed files with 30 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -23,3 +23,7 @@ go.work.sum
|
|||
|
||||
# env file
|
||||
.env
|
||||
|
||||
# build output
|
||||
server
|
||||
plaintext-encyclopedia
|
||||
|
|
BIN
.misc/screenshot1.png
Normal file
BIN
.misc/screenshot1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
.misc/screenshot2.png
Normal file
BIN
.misc/screenshot2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 200 KiB |
19
README.md
Normal file
19
README.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Plaintext Encyclopedia
|
||||
|
||||
A very simple and clean reader/browser? for plaintext... documentation? wiki? chapters of a book? whatever.
|
||||
|
||||

|
||||

|
||||
|
||||
## How to use
|
||||
|
||||
1. Set your settings in `settings.go`
|
||||
2. Modify (if you want)
|
||||
3. Compile `go get && go build -o server`
|
||||
4. Place your content into `entries/`
|
||||
5. Run `./server`
|
||||
6. put behind a proxy (or don't).
|
||||
|
||||
## Requirements
|
||||
|
||||
Developed and tested on Linux. Should work on other Unixoids.
|
|
@ -1,5 +1,7 @@
|
|||
package main
|
||||
|
||||
// Copyright (c) 2024 Julian Müller (ChaoticByte)
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
"log"
|
||||
|
|
2
main.go
2
main.go
|
@ -1,5 +1,7 @@
|
|||
package main
|
||||
|
||||
// Copyright (c) 2024 Julian Müller (ChaoticByte)
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
"log"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<!-- Copyright (c) 2024 Julian Müller (ChaoticByte) -->
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Copyright (c) 2024 Julian Müller (ChaoticByte)
|
||||
(() => {
|
||||
let searchBox = document.getElementById("search-box");
|
||||
let searchResults = document.getElementById("search-results");
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* Copyright (c) 2024 Julian Müller (ChaoticByte) */
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
|
Reference in a new issue