Skip to content

sfdsn/wiki

Repository files navigation

Tiddlywiki-NodeJS-Github-Template

I created an App based on this, TiddlyGit-Desktop, which can generate template wiki on one-click.

Knowledge base Template, with advanced filter search and faceted data aggregation.

wiki.onetwo.ren is an example of this template. And tiddlywiki-nodejs-github-template.now.sh is deployed example of this repo.

This repo contains the wiki backup data and script to start a local wiki server on MacOS on start up.

The wiki is minimized using modern web dev-tool, and accompany with a service worker to make it a PWA.

Setup

用TiddlyWiki替代Notion和EverNote作为个人知识管理系统 (Chinese)

English translation comeout soon.

Deployed to Now.sh

Procedure to deploy: 使用 Now.sh 部署 TiddlyWiki (Chinese)

Configs

In package.json there is port for local server to listen, and name for the tiddlywiki data folder name.

In now.json there is config for deployment, see zeit.co for detail.

NPM Scripts

npm run install:wikiServer: install service that will start a local wiki server on MacOS on start up. And it will start the localhost server immediately

npm run install:privateRepo: create soft link to ../private-MyTiddlyWiki, so tiddlywiki will load tiddlers and images in that private repo

npm run uninstall:wikiServer: uninstall start up script, and shut down the server immediately

npm run install:windows:wikiServer npm run install:privateRepo npm run uninstall:windows:wikiServer are Windows version of above commands

npm run start:wikiServer: start local tiddlywiki server.

npm build and npm run build:nodejs2html: pack tiddlywiki data to a HTML file

npm run build:public: copy things from ./PublicWiki/public to /public, so they can be served by a static server

npm run build:sitemap: generate sitemap point to wiki.onetwo.ren

npm run build:precache: use workbox to modify /public/service-worker.js to precache things under /public

npm run build:minifyHTML: use terser and other things to reduce bundle size

npm run build:prepare npm run build:clean: delete generated folders

Shell Scripts

scripts/commit.sh will commit things to local git

scripts/sync.sh will sync text to Github, automatically merge and resolve dirty things

Debug

If your wiki not started, and error log under /Library/Logs/TiddlyWiki shows a permission error: coreybutler/node-mac/issues/28

Credit

Scripts are inspired by DiamondYuan/wiki

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published