WikiBreeze (简体中文) 🛠️
WikiBreeze is a collaborative LAN wiki content editor that enables complete separation of wiki code writing🧑💻 and content filling ✍️ with concise operability 🦾, which can greatly improve wiki development efficiency 🥰.
Here is a tutorials for iGEMers to get started: Intuitive illustrated Wikibreeze tutorials for iGEMers
WikiBreeze is a user-friendly LAN editor 🧰 that allows iGEM team members to easily edit wikis. it provides a simple interface for editing wiki content pages. And only one person from the whole team needs to install it to enable collaborative editing for the whole team. With WikiBreeze, wiki content editors can focus on quality content without having to think about the technical details of HTML and CSS.
To use WikiBreeze, follow these steps:
- Download the latest release of the zip archive and unzip it. Put the
WikiBreeze
folder into the root directory of your wiki project.
<directory name>
├── Wikibreeze
│ ├── WikiBreeze.exe
│ └── ...
├── xxx.html
└── ...
- Insert the following special tag into each
.html
file or other file type where you want to edit:<!-- WikiBreeze {{CONTENT}} start-->
. Replace{{CONTENT}}
with an arbitrary custom name. (Note: A page can contain multiple differently named tags, and each part corresponding to a tag can be edited independently.) If no file containing this tag is found in the project directory, a sample filetestPage.html
will be generated automatically.
<div>
<!-- WikiBreeze test1 start-->
</div>
- Use terminals run the executable file WikiBreeze.exe in the WikiBreeze directory to start the tool. You will then see the generated URL in the console, as shown below. You can edit your wiki in the browser via the generated URL. WikiBreeze also supports collaborative editing within a LAN (e.g. personal hotspot, campus network, etc.), so team members within the same LAN can access the editing page through the second link.
Server started on port 5001
Local: http://localhost:5001
Network: http://192.168.Xx.xx:5001
-
The HTML source code after editing and saving will be automatically inserted into the relative position of the page. At the same time, the WikibreezeData folder will be generated to store the information of the edited page.
-
Add
Wikibreeze/
directory into .gitignore file(Note: the auto generatedWikibreezeData/
is used for store your pages content and configuration, so it is very important and must be track by git and synced with your repository). -
We also provide a configuration file WikibreezeData/config/config.json, which will be automatically generated upon the first run of the application. It allows you to customize certain parameters such as the directory containing the pages to be modified, the port to be used, and the file types. The default values for these parameters can be seen in the example configuration file below:
{
// Directory containing the page to be modified (e.g. "D:/github/web/src/pages/")
"scanDirectory": "../",
// Port to be used (e.g. "5001" or "auto")
"port": "auto",
// File type to be scanned (e.g. [".html",....])
"fileType":[".html",".vue"]
}
- see Features for more detailed usage.
The following is for developers wishing to make improvements to the tool or build it by your self! WikiBreeze is developed using Vue 3 and Go. The front-end is implemented using Vue 3 and TypeScript and built using the Vite build tool. The back-end is implemented using Go and provides a RESTful API for the front-end to interact with. To set up the development environment for WikiBreeze, you need to have Node.js and Go installed on your system. Then, follow these steps:
- Clone this repository and navigate to the root directory.
- Run
npm install
to install the required dependencies for the front-end.
To build the front-end, run npm run build:frontend
.
To build the back-end, run npm run build:backend
.
To build both front-end and back-end, run npm run build
.
The target program generated by the compilation is under the Wikibreeze
folder.
To develop this project simultaneously in Vue 3 and Go, you need to run the following commands in two different terminals:
cd frontend && npm run dev
cd backend && go run .
This will start the front-end development server and the back-end development server. You can access the link in the front-end console to view the page.
The working principle of WikiBreeze can be summarized in the following diagram:
graph TB
user1 --edit content1--> WebEditor
user2 --edit content2--> WebEditor
subgraph WikiBreeze
WebEditor(WebEditor) <--track changes--> backend(backend)
backend <--read/write local data files--> data(page datas)
backend --insert web page source code--> pages(your .html files)
end
The front-end WebEditor sends HTTP requests to the back-end to retrieve and update the edited content. The back-end reads and writes automatically generated data files in real time and synchronizes the changes to the wiki code.
- FrontEnd: Vue 3, TypeScript, Vite, tiptap
- BackEnd: Go
- Build tool: Vite, go build
- ...
- ✔️ table with note 🦉
- ✔️ img with note 🌌
- ✔️ customize the HTML 🗽
- v1.0.0
- auto git commit
- upload image to iGEM server (See details here)
- ......