diff --git a/README.md b/README.md new file mode 100644 index 0000000..3a66931 --- /dev/null +++ b/README.md @@ -0,0 +1,193 @@ +# yatwiki-legacy + +![](https://img.shields.io/badge/written%20in-Golang%2C%20PHP-blue) + +A semi-anonymous wiki for use in trusted environments. + +For the 20150901 release, a desktop version is available for Windows (based on PHPDesktop). + +As of the 3.0 release, YATWiki is now a standalone server instead of a PHP script. + +## Features + +- Standalone server, easy to run +- Built-in SQLite database +- BBcode +- Diff page revisions +- RSS changelog +- IP-based ban system +- Article index, random article, download database backup +- Source code highlighting (thanks [highlight.js](https://github.com/isagalaev/highlight.js)) +- Optional integration with `contented` for file/image uploads + +## Usage + +You can start YATWiki by running the binary. A default configuration file and database will be automatically generated if they are not found. + + +``` +Usage of ./yatwiki-server: + -config string + Configuration file (default "config.json") + -listen string + Bind address (default "127.0.0.1:80") + +``` + + +## Go Get + +This package can be installed via go get: `go get code.ivysaur.me/yatwiki` + +## Changelog + +2018-04-02 3.3.0 +- Feature: Allow deleting (and un-deleting) articles +- Feature: Support `[youtube]` tag for embedded Youtube videos +- Feature: Add link to view raw page source when viewing a specific page revision +- Feature: Display timestamps on all console log messages +- Enhancement: Upgrade bundled SQLite3 library +- Disable zooming out on mobile devices (but zooming in is still allowed) +- Fix an issue with linking to articles where the name contained an apostrophe +- [⬇️ yatwiki-3.3.0-win32.7z](dist-archive/yatwiki-3.3.0-win32.7z) *(1.78 MiB)* +- [⬇️ yatwiki-3.3.0-src.zip](dist-archive/yatwiki-3.3.0-src.zip) *(59.10 KiB)* +- [⬇️ yatwiki-3.3.0-linux64.tar.gz](dist-archive/yatwiki-3.3.0-linux64.tar.gz) *(2.65 MiB)* + + +2017-11-18 3.2.0 +- Feature: Add new ContentedBBCodeTag option to choose a BBCode tag for mini thumbnails (requires `contented` >= 1.2.0) +- Feature: Replace menu image with SVG, for high-DPI screens +- Feature: Hover over timestamps to display in more detail +- Feature: Link to diff pages directly from the Recent Changes page +- Fix some cosmetic issues with the Recent Changes page +- [⬇️ yatwiki-3.2.0-win32.7z](dist-archive/yatwiki-3.2.0-win32.7z) *(1.77 MiB)* +- [⬇️ yatwiki-3.2.0-src.zip](dist-archive/yatwiki-3.2.0-src.zip) *(56.83 KiB)* +- [⬇️ yatwiki-3.2.0-linux64.tar.gz](dist-archive/yatwiki-3.2.0-linux64.tar.gz) *(2.64 MiB)* + + +2017-10-29 3.1.3 +- Fix one more case of article title normalisation +- [⬇️ yatwiki-3.1.3-win32.7z](dist-archive/yatwiki-3.1.3-win32.7z) *(1.77 MiB)* +- [⬇️ yatwiki-3.1.3-src.zip](dist-archive/yatwiki-3.1.3-src.zip) *(60.37 KiB)* +- [⬇️ yatwiki-3.1.3-linux64.tar.gz](dist-archive/yatwiki-3.1.3-linux64.tar.gz) *(2.64 MiB)* + + +2017-10-29 3.1.2 +- Lock dependency versions +- Enhancement: Advertise build number in Server headers +- Fix a regression in 3.x series with not normalising article titles +- Fix server response if favicon is not configured +- [⬇️ yatwiki-3.1.2-win32.7z](dist-archive/yatwiki-3.1.2-win32.7z) *(1.77 MiB)* +- [⬇️ yatwiki-3.1.2-src.zip](dist-archive/yatwiki-3.1.2-src.zip) *(60.37 KiB)* +- [⬇️ yatwiki-3.1.2-linux64.tar.gz](dist-archive/yatwiki-3.1.2-linux64.tar.gz) *(2.64 MiB)* + + +2017-10-15 3.1.1 +- Update `contented` integration (requires `contented` >= 1.1.0) +- [⬇️ yatwiki-3.1.1-win32.7z](dist-archive/yatwiki-3.1.1-win32.7z) *(1.76 MiB)* +- [⬇️ yatwiki-3.1.1-src.zip](dist-archive/yatwiki-3.1.1-src.zip) *(59.25 KiB)* +- [⬇️ yatwiki-3.1.1-linux64.tar.gz](dist-archive/yatwiki-3.1.1-linux64.tar.gz) *(2.61 MiB)* + + +2017-10-08 3.1.0 +- Feature: Support content upload to a `contented` server +- [⬇️ yatwiki-3.1.0-win32.7z](dist-archive/yatwiki-3.1.0-win32.7z) *(1.76 MiB)* +- [⬇️ yatwiki-3.1.0-src.zip](dist-archive/yatwiki-3.1.0-src.zip) *(59.21 KiB)* +- [⬇️ yatwiki-3.1.0-linux64.tar.gz](dist-archive/yatwiki-3.1.0-linux64.tar.gz) *(2.61 MiB)* + + +2017-08-11 3.0.2 +- Fix an issue with XSS prevention for web browsers other than Chrome +- [⬇️ yatwiki-3.0.2-win32.7z](dist-archive/yatwiki-3.0.2-win32.7z) *(1.76 MiB)* +- [⬇️ yatwiki-3.0.2-src.zip](dist-archive/yatwiki-3.0.2-src.zip) *(58.91 KiB)* +- [⬇️ yatwiki-3.0.2-linux64.tar.gz](dist-archive/yatwiki-3.0.2-linux64.tar.gz) *(2.61 MiB)* + + +2017-08-11 3.0.1 +- Feature: New `TrustXForwardedFor` config option for usage behind reverse proxies +- Fix an issue with article titles containing `+` +- Fix an issue with `[html]` tags +- Fix an issue with viewing history for unknown articles +- [⬇️ yatwiki-3.0.1-win32.7z](dist-archive/yatwiki-3.0.1-win32.7z) *(1.76 MiB)* +- [⬇️ yatwiki-3.0.1-src.zip](dist-archive/yatwiki-3.0.1-src.zip) *(58.86 KiB)* +- [⬇️ yatwiki-3.0.1-linux64.tar.gz](dist-archive/yatwiki-3.0.1-linux64.tar.gz) *(2.61 MiB)* + + +2017-07-11 3.0 +- YATWiki was rewritten in Go. +- Enhancement: Standalone binary server +- Enhancement: No longer requires cookies for error messages +- Enhancement: Add `norefer` attribute to outgoing links +- Improve performance of generating RSS content +- Removed support for ban-evasion codes and "download source code" +- [⬇️ yatwiki-3.0-win32.7z](dist-archive/yatwiki-3.0-win32.7z) *(1.63 MiB)* +- [⬇️ yatwiki-3.0-src.zip](dist-archive/yatwiki-3.0-src.zip) *(58.50 KiB)* +- [⬇️ yatwiki-3.0-linux64.tar.gz](dist-archive/yatwiki-3.0-linux64.tar.gz) *(2.69 MiB)* + + +2017-06-24 r60 +- Enhancement: Don't require `short_open_tag` in PHP configuration for new installs +- Fix a number of issues with handling of base URLs in links +- Fix a cosmetic issue with file caching for CSS content +- [⬇️ YATWiki-20170624-r60.tar.xz](dist-archive/YATWiki-20170624-r60.tar.xz) *(20.51 KiB)* + + +2016-11-16 20161116 +- (no public release) +- Enhancement: Always open the formatting help in a new tab +- Fix a cosmetic issue with display of backslash characters caused by Meiryo font + +2016-08-24 20160824 +- (no public release) +- Feature: Add Compare button to both top and bottom of article revision list +- Fix an issue with noncompliant HTML when comparing diffs + +2015-09-01 r29 +- Feature: Desktop version for Windows (based on PHPDesktop) +- Enhancement: Automatically determine whether HTTPS is in use, simplifying configuration +- Fix an issue with handling of base URLs in links +- Fix a cosmetic issue with document mode in Internet Explorer +- [⬇️ YATWiki-20150901-r29-web.zip](dist-archive/YATWiki-20150901-r29-web.zip) *(22.57 KiB)* +- [⬇️ YATWiki-20150901-r29-desktop.zip](dist-archive/YATWiki-20150901-r29-desktop.zip) *(4.73 MiB)* + + +2013-10-19 r20 +- Enhancement: Include current-revision, diff-to-previous links inside RSS feed +- Enhancement: Change date display format +- Enhancement: Always diff in chronological order, regardless of selection order +- Fix a cosmetic issue with missing history/edit buttons when viewing an old page revision +- [⬇️ YATWiki-20131019-r20.zip](dist-archive/YATWiki-20131019-r20.zip) *(22.46 KiB)* + + +2013-06-05 20130605 +- Feature: Spoiler tags +- Feature: Raw HTML tags (the viewer must click through a warning to enable) +- Feature: IP bans +- Feature: RSS support +- Feature: Endpoint for accessing raw page content (`/raw/{pagename}`) +- Feature: Code highlighting via `highlight.js` (BSD license) +- Enhancement: Split change history across multiple pages +- Enhancement: Move formatting help to separate page +- Fix issues with blank-named pages, spaces in page names, and blank page content +- Fix some cosmetic issues on mobile browsers +- Fix a cosmetic issue when loading YATWiki with no database file +- [⬇️ YATWiki-20130605.php.gz](dist-archive/YATWiki-20130605.php.gz) *(7.79 KiB)* + + +2012-03-24 20120324 +- Merge into single-file +- Replace Markdown with BBCode formatting +- [⬇️ YATWiki-20120324.php.gz](dist-archive/YATWiki-20120324.php.gz) *(5.90 KiB)* + + +2011-06-12 v1.1 +- Replace flat-file article storage with SQLite DB +- [⬇️ YATWiki-20110612-v1.1.7z](dist-archive/YATWiki-20110612-v1.1.7z) *(16.22 KiB)* + + +2011-05-03 v1.0 +- Initial public release +- Flat-file article storage +- Markdown formatting +- [⬇️ YATWiki-20110503-v1.0.rar](dist-archive/YATWiki-20110503-v1.0.rar) *(14.24 KiB)* + diff --git a/dist-archive/YATWiki-20110503-v1.0.rar b/dist-archive/YATWiki-20110503-v1.0.rar new file mode 100644 index 0000000..547fb5b Binary files /dev/null and b/dist-archive/YATWiki-20110503-v1.0.rar differ diff --git a/dist-archive/YATWiki-20110612-v1.1.7z b/dist-archive/YATWiki-20110612-v1.1.7z new file mode 100644 index 0000000..648cc4e Binary files /dev/null and b/dist-archive/YATWiki-20110612-v1.1.7z differ diff --git a/dist-archive/YATWiki-20120324.php.gz b/dist-archive/YATWiki-20120324.php.gz new file mode 100644 index 0000000..0f4259f Binary files /dev/null and b/dist-archive/YATWiki-20120324.php.gz differ diff --git a/dist-archive/YATWiki-20130605.php.gz b/dist-archive/YATWiki-20130605.php.gz new file mode 100644 index 0000000..22f0a91 Binary files /dev/null and b/dist-archive/YATWiki-20130605.php.gz differ diff --git a/dist-archive/YATWiki-20131019-r20.zip b/dist-archive/YATWiki-20131019-r20.zip new file mode 100644 index 0000000..7951612 Binary files /dev/null and b/dist-archive/YATWiki-20131019-r20.zip differ diff --git a/dist-archive/YATWiki-20150901-r29-desktop.zip b/dist-archive/YATWiki-20150901-r29-desktop.zip new file mode 100644 index 0000000..70aad87 Binary files /dev/null and b/dist-archive/YATWiki-20150901-r29-desktop.zip differ diff --git a/dist-archive/YATWiki-20150901-r29-web.zip b/dist-archive/YATWiki-20150901-r29-web.zip new file mode 100644 index 0000000..b43130a Binary files /dev/null and b/dist-archive/YATWiki-20150901-r29-web.zip differ diff --git a/dist-archive/YATWiki-20170624-r60.tar.xz b/dist-archive/YATWiki-20170624-r60.tar.xz new file mode 100644 index 0000000..a0932ad Binary files /dev/null and b/dist-archive/YATWiki-20170624-r60.tar.xz differ diff --git a/dist-archive/yatwiki-3.0-linux64.tar.gz b/dist-archive/yatwiki-3.0-linux64.tar.gz new file mode 100644 index 0000000..94203ba Binary files /dev/null and b/dist-archive/yatwiki-3.0-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.0-src.zip b/dist-archive/yatwiki-3.0-src.zip new file mode 100644 index 0000000..16973f7 Binary files /dev/null and b/dist-archive/yatwiki-3.0-src.zip differ diff --git a/dist-archive/yatwiki-3.0-win32.7z b/dist-archive/yatwiki-3.0-win32.7z new file mode 100644 index 0000000..e252dff Binary files /dev/null and b/dist-archive/yatwiki-3.0-win32.7z differ diff --git a/dist-archive/yatwiki-3.0.1-linux64.tar.gz b/dist-archive/yatwiki-3.0.1-linux64.tar.gz new file mode 100644 index 0000000..5f933c3 Binary files /dev/null and b/dist-archive/yatwiki-3.0.1-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.0.1-src.zip b/dist-archive/yatwiki-3.0.1-src.zip new file mode 100644 index 0000000..6b12caa Binary files /dev/null and b/dist-archive/yatwiki-3.0.1-src.zip differ diff --git a/dist-archive/yatwiki-3.0.1-win32.7z b/dist-archive/yatwiki-3.0.1-win32.7z new file mode 100644 index 0000000..99782d8 Binary files /dev/null and b/dist-archive/yatwiki-3.0.1-win32.7z differ diff --git a/dist-archive/yatwiki-3.0.2-linux64.tar.gz b/dist-archive/yatwiki-3.0.2-linux64.tar.gz new file mode 100644 index 0000000..f68f541 Binary files /dev/null and b/dist-archive/yatwiki-3.0.2-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.0.2-src.zip b/dist-archive/yatwiki-3.0.2-src.zip new file mode 100644 index 0000000..ff04a0b Binary files /dev/null and b/dist-archive/yatwiki-3.0.2-src.zip differ diff --git a/dist-archive/yatwiki-3.0.2-win32.7z b/dist-archive/yatwiki-3.0.2-win32.7z new file mode 100644 index 0000000..7ad38ac Binary files /dev/null and b/dist-archive/yatwiki-3.0.2-win32.7z differ diff --git a/dist-archive/yatwiki-3.1.0-linux64.tar.gz b/dist-archive/yatwiki-3.1.0-linux64.tar.gz new file mode 100644 index 0000000..6b08f2c Binary files /dev/null and b/dist-archive/yatwiki-3.1.0-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.1.0-src.zip b/dist-archive/yatwiki-3.1.0-src.zip new file mode 100644 index 0000000..304331a Binary files /dev/null and b/dist-archive/yatwiki-3.1.0-src.zip differ diff --git a/dist-archive/yatwiki-3.1.0-win32.7z b/dist-archive/yatwiki-3.1.0-win32.7z new file mode 100644 index 0000000..6ff4d5c Binary files /dev/null and b/dist-archive/yatwiki-3.1.0-win32.7z differ diff --git a/dist-archive/yatwiki-3.1.1-linux64.tar.gz b/dist-archive/yatwiki-3.1.1-linux64.tar.gz new file mode 100644 index 0000000..8126023 Binary files /dev/null and b/dist-archive/yatwiki-3.1.1-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.1.1-src.zip b/dist-archive/yatwiki-3.1.1-src.zip new file mode 100644 index 0000000..085a012 Binary files /dev/null and b/dist-archive/yatwiki-3.1.1-src.zip differ diff --git a/dist-archive/yatwiki-3.1.1-win32.7z b/dist-archive/yatwiki-3.1.1-win32.7z new file mode 100644 index 0000000..503de21 Binary files /dev/null and b/dist-archive/yatwiki-3.1.1-win32.7z differ diff --git a/dist-archive/yatwiki-3.1.2-linux64.tar.gz b/dist-archive/yatwiki-3.1.2-linux64.tar.gz new file mode 100644 index 0000000..f9afb58 Binary files /dev/null and b/dist-archive/yatwiki-3.1.2-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.1.2-src.zip b/dist-archive/yatwiki-3.1.2-src.zip new file mode 100644 index 0000000..c3516c4 Binary files /dev/null and b/dist-archive/yatwiki-3.1.2-src.zip differ diff --git a/dist-archive/yatwiki-3.1.2-win32.7z b/dist-archive/yatwiki-3.1.2-win32.7z new file mode 100644 index 0000000..3da9a3c Binary files /dev/null and b/dist-archive/yatwiki-3.1.2-win32.7z differ diff --git a/dist-archive/yatwiki-3.1.3-linux64.tar.gz b/dist-archive/yatwiki-3.1.3-linux64.tar.gz new file mode 100644 index 0000000..14cb93b Binary files /dev/null and b/dist-archive/yatwiki-3.1.3-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.1.3-src.zip b/dist-archive/yatwiki-3.1.3-src.zip new file mode 100644 index 0000000..441badc Binary files /dev/null and b/dist-archive/yatwiki-3.1.3-src.zip differ diff --git a/dist-archive/yatwiki-3.1.3-win32.7z b/dist-archive/yatwiki-3.1.3-win32.7z new file mode 100644 index 0000000..3bf8211 Binary files /dev/null and b/dist-archive/yatwiki-3.1.3-win32.7z differ diff --git a/dist-archive/yatwiki-3.2.0-linux64.tar.gz b/dist-archive/yatwiki-3.2.0-linux64.tar.gz new file mode 100644 index 0000000..f884133 Binary files /dev/null and b/dist-archive/yatwiki-3.2.0-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.2.0-src.zip b/dist-archive/yatwiki-3.2.0-src.zip new file mode 100644 index 0000000..67b4a6d Binary files /dev/null and b/dist-archive/yatwiki-3.2.0-src.zip differ diff --git a/dist-archive/yatwiki-3.2.0-win32.7z b/dist-archive/yatwiki-3.2.0-win32.7z new file mode 100644 index 0000000..f771953 Binary files /dev/null and b/dist-archive/yatwiki-3.2.0-win32.7z differ diff --git a/dist-archive/yatwiki-3.3.0-linux64.tar.gz b/dist-archive/yatwiki-3.3.0-linux64.tar.gz new file mode 100644 index 0000000..cf337be Binary files /dev/null and b/dist-archive/yatwiki-3.3.0-linux64.tar.gz differ diff --git a/dist-archive/yatwiki-3.3.0-src.zip b/dist-archive/yatwiki-3.3.0-src.zip new file mode 100644 index 0000000..ff0947c Binary files /dev/null and b/dist-archive/yatwiki-3.3.0-src.zip differ diff --git a/dist-archive/yatwiki-3.3.0-win32.7z b/dist-archive/yatwiki-3.3.0-win32.7z new file mode 100644 index 0000000..1c68276 Binary files /dev/null and b/dist-archive/yatwiki-3.3.0-win32.7z differ diff --git a/doc/ytw1.png b/doc/ytw1.png new file mode 100644 index 0000000..57479ce Binary files /dev/null and b/doc/ytw1.png differ