Giter Site home page Giter Site logo

zwiki's People

Contributors

jack-zh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zwiki's Issues

建议:单独添加tag

现在只能在创建page 的时候声明tag 来实现添加tag 的功能,能否在tag 项下添加一个添加按钮来添加新tag?

无法访问

在ubutnu 上按照文档说的安装好了,然后执行命令gunicorn -b 0.0.0.0:8889 app:app 启动:

[2016-01-25 16:27:02 +0000] [1104] [INFO] Starting gunicorn 19.4.5
[2016-01-25 16:27:02 +0000] [1104] [INFO] Listening at: http://0.0.0.0:8889 (1104)
[2016-01-25 16:27:02 +0000] [1104] [INFO] Using worker: sync
[2016-01-25 16:27:02 +0000] [1109] [INFO] Booting worker with pid: 1109

但是在另一台电脑无法访问,提示错误:

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

这个怎么解决?

upload error

When I upload my photo for markdown, It gave me "未选中图片" back.

路径嵌套问题

谢谢楼主分享,最近正在用你的框架搭建自己的wiki系统。
有一个小bug,就是如果md的文件路径超过两层,那么无法打开url。
查看了下,是model.py,167行url = os.path.join(path_prefix[0], name[:-3]) 需要修改一下,在windows下,可以修改为url = os.path.join('\\'.join(path_prefix) , name[:-3])

期待楼主增加新功能!

更改zwiki的markdown显示样式

不改变原始的markdown解析,在显示的时候把html显示的样式改掉。

在static目录下新建一个css样式文件,如:md.css(来自mou)

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote {
    margin: 0;
    padding: 0;

}
body {
    font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #737373;
    margin: 10px 13px 10px 13px;

}
a {
    color: #0069d6;

}
a:hover {
    color: #0050a3;
    text-decoration: none;

}
a img {
    border: none;

}
p {
    margin-bottom: 9px;

}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #404040;
    line-height: 36px;

}
h1 {
    margin-bottom: 18px;
    font-size: 30px;

}
h2 {
    font-size: 24px;

}
h3 {
    font-size: 18px;

}
h4 {
    font-size: 16px;

}
h5 {
    font-size: 14px;

}
h6 {
    font-size: 13px;

}
hr {
    margin: 0 0 19px;
    border: 0;
    border-bottom: 1px solid #ccc;

}
blockquote {
    padding: 13px 13px 21px 15px;
    margin-bottom: 18px;
    font-family:georgia,serif;
    font-style: italic;

}
blockquote:before {
    content:"\201C";
    font-size:40px;
    margin-left:-10px;
    font-family:georgia,serif;
    color:#eee;

}
blockquote p {
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    margin-bottom: 0;
    font-style: italic;

}
code, pre {
    font-family: Monaco, Andale Mono, Courier New, monospace;

}
code {
    background-color: #fee9cc;
    color: rgba(0, 0, 0, 0.75);
    padding: 1px 3px;
    font-size: 12px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;

}
pre {
    display: block;
    padding: 14px;
    margin: 0 0 18px;
    line-height: 16px;
    font-size: 11px;
    border: 1px solid #d9d9d9;
    white-space: pre-wrap;
    word-wrap: break-word;

}
pre code {
    background-color: #fff;
    color:#737373;
    font-size: 11px;
    padding: 0;

}
table {
    font-size:inherit;
    font:100%;
    margin:1em;

}
table th{border-bottom:1px solid #bbb;padding:.2em 1em;}
table td{border-bottom:1px solid #ddd;padding:.2em 1em;}
table .titleth{border:0px;padding:1em 1em;font-size:14px;}
table .urlth{border-left:1px solid #bbb;border-right:0px;border-bottom:0px;padding:1em 1em;font-size:14px;}

在主模版文件base.html里添加CSS引用,添加md.css的链接

<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='md.css')        }}">

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.