Teach you how to build a Wiki system based on Markdown

Source: Internet
Author: User
Tags tomcat server
1 Preparation ResourcesMdwiki the base Package HTTP server (application server can also, the application server is required because Mdwiki must be run under the HTTP server.) )

For the above resources, please download your own O (∩_∩) o~ first. 2 Creating the Chinese environment

Mdwiki Base Package Structure:

Rename the project folder to *-wiki (you can also take your favorite name, O (∩_∩) o). LL_CC is a template directory, do not use directly, so as to facilitate later mdwiki updates and upgrades. So we have a full copy of the LL_CC directory and then change the folder to ZH_CN. So we create a Chinese directory environment. If you want your wiki to support multiple languages, it is recommended that you refer to the International Language Code table and then copy multiple copies of LL_CC and place them in the root directory. 3 put in HTTP server

The environment shown here is:
* Tomcat Server
* Idea Editor
* Git (for page hosting)

Specifically, the process of building the server, not here, we can check more information on the Internet. O (∩_∩) o~

One thing to note is that in order for IntelliJ idea to support markdown syntax, we have to install a plugin.

After the plug-in is successfully installed, you can enjoy the markdown syntax highlighting and WYSIWYG dual-screen interface:

After you have designed the paging file, you can put it directly into the ZH_CN folder.

Note: The file suffix must be md oh O (∩_∩) o~ 4 Run

When you visit Http://localhost:port/zh_CN, the page jumps to http://localhost:port/zh_CN/#index. MD; Note this is not index.html.

If you see this page, then congratulations, your markdown Wiki system has been built successfully o (∩_∩) o

If white screen appears, it may be because the project depends on the jquery file is blocked, open the zh_cn/index.html file, modify the JQuery path:

<script type= "Text/javascript" src= "//code.jquery.com/jquery-1.12.4.min.js" ></script>

And then turn it back on, and you can use the O (∩_∩) o~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.