2024-03-10 02:37:40 +00:00
2024-02-15 23:28:01 +00:00
# TCP-WIKI
2024-03-10 02:37:40 +00:00
[![Go Report Card ](https://goreportcard.com/badge/github.com/vxfemboy/tcp-wiki )](https://goreportcard.com/report/github.com/vxfemboy/tcp-wiki)
2023-04-02 18:39:31 +00:00
2024-03-10 02:37:40 +00:00
![screenshot ](examples/tcp-wiki.png "TCP-WIKI" )
2023-04-02 19:24:07 +00:00
2024-03-10 02:37:40 +00:00
### What is TCP-WIKI ?
2023-04-12 22:22:36 +00:00
2024-03-10 02:37:40 +00:00
TCP.WIKI is a secure, minimal, and verifiable wiki platform designed for projects, code, courses, documents, articles, blogs, tutorials, and more.
2023-04-15 23:16:27 +00:00
2024-02-15 23:28:01 +00:00
### Project Goals
2023-04-15 23:16:27 +00:00
2024-02-15 23:28:01 +00:00
The aim is to provide a secure, minimal, and easily verifiable wiki environment that supports a wide range of content types, from technical documentation, to educational materials, to blogs, and more.
2023-04-12 22:22:36 +00:00
2024-03-10 02:37:40 +00:00
#### Features:
* Full support for pages in Markdown and HTML
* Pull from GIT for live updates or usage of local directory
* No Javascript required
2023-04-12 22:22:36 +00:00
## Setup
2023-04-12 12:29:36 +00:00
2024-02-15 23:28:01 +00:00
First clone this repository:
2023-04-12 12:29:36 +00:00
```bash
2024-03-10 02:37:40 +00:00
git clone https://github.com/vxfemboy/tcp-wiki.git
2023-04-12 12:29:36 +00:00
```
Then you have to cd into the repo's folder and run/compile:
```bash
2024-02-15 23:28:01 +00:00
cd tcp-wiki
go run ./src
2023-04-12 12:29:36 +00:00
```
Then you goto your browser and visit: http://127.0.0.1:8080/
2024-02-15 23:28:01 +00:00
## Want to use with your own data?
2023-04-12 12:29:36 +00:00
2024-02-15 23:28:01 +00:00
All you have to do is modify the following lines in the `config.toml` file:
```toml
[Git]
UseGit = true # Set to false to use LocalPath
2024-03-10 02:37:40 +00:00
RepoURL = "https://github.com/vxfemboy/tcp-wiki.git" # Your Repo Here
2024-02-15 23:28:01 +00:00
Branch = "main" # Your Repo Branch Here
LocalPath = "data" # Directory to clone the git repo too
2023-04-12 22:22:36 +00:00
```
2023-04-12 12:29:36 +00:00
2024-03-10 02:37:40 +00:00
Change the `RepoURL` line `https://github.com/vxfemboy/tcp-wiki.git` to your repo link,
2024-02-15 23:28:01 +00:00
change `main` to your specific repo's branch and you should be good to go!
2023-04-12 12:29:36 +00:00
2024-02-15 23:28:01 +00:00
#### Want to use a local directory other then git repo?
2023-04-12 12:29:36 +00:00
2024-02-15 23:28:01 +00:00
To do this you just need to set `UseGit` to `false` and set your directory in config.toml
```toml
[Git]
UseGit = false # Set this to false
RepoURL = "" # Ignored
Branch = "" # Ignored
LocalPath = "/home/crazy/blog" # The directory of your project
2023-04-12 22:22:36 +00:00
```
2024-02-15 23:28:01 +00:00
make sure to also set `LocalPath` to the directory of your project
2024-03-10 02:37:40 +00:00
#### Want to use your own theme/layout?
Have a look at the `assets/` directory for the template `_layout.html` this is the main file that will be used
using [tailwindscss ](https://tailwindcss.com/ ) and [daisyui ](https://daisyui.com/ ) as a css library
to setup this for live modifications do:
```
cd sass
npm install
npx tailwindcss -i ./tail.css -o ../assets/main.css --watch
```
and to minify your css for production usage:
```
npx tailwindcss -o ../assets/main.css --minify
```
> ### ❤️ Feel free to commit, leave suggestions/ideas, issues, or really anything ❤️
2023-04-12 12:29:36 +00:00
2023-04-02 19:24:07 +00:00
## TODO
2024-02-15 23:28:01 +00:00
- [x] config file
2023-04-02 19:24:07 +00:00
- [ ] Webhook support for auto pull on push/update of the git repo
2023-04-12 22:22:36 +00:00
- [x] Git Branch support
2023-04-02 20:02:07 +00:00
- [ ] add a star/upvote/like feature for pages
2023-04-13 01:35:10 +00:00
- [x] edit/version tracker
- [x] Author
- [x] last edited
2024-02-15 23:28:01 +00:00
- [x] last editor/commit - maybe working
2023-04-12 22:22:36 +00:00
- [ ] PGP Signed & Verification
2023-04-12 09:48:12 +00:00
- [ ] pgp signed intergration
2023-04-12 12:29:36 +00:00
- [x] comments using bitcask - generated in comments.db/
2023-04-12 09:48:12 +00:00
- [ ] verification - no login pgp
- [ ] captcha
- [ ] sub rating system
- [ ] sort by date etc
2023-04-12 12:29:36 +00:00
- [ ] reply to replies
- [ ] set security controls per page
2023-04-12 22:45:55 +00:00
- [ ] auto refresh on post
2024-02-10 02:27:04 +00:00
- [x] dynamically generated links for all avaiable pages
2024-03-10 02:37:40 +00:00
- [x] sitemap - kinda (needs limited)
2024-02-15 23:28:01 +00:00
- [x] working pages
2024-03-10 02:37:40 +00:00
- [x] image support