A simple Django app to make styleguide
Project description
help you launch your style guide site with KSS syntax
start
pip install django-kss
Installed APP Settings
in settings.py
Add the two app,
INSTALLED_APPS += (
“django_kss”,
“pykss.contrib.django”,
)
urls.py settings
Routing, add the following two lines in your project’s urls.py
import:
import django_kss.urls
add the url patterns:
url(r’^$’, include(django_kss.urls)),
Use the The Preconfigured Django Server
git clone https://github.com/timtan/django_kss
cd django_kss
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
cd django_kss_project
python manage.py runserver
refer the KSS Related settings’s section to full fill your need.
Development
計畫可以方便的做 Style Guide.
DRY 要到一個極致。
只有寫 CSS, 接下來,就可以自動產生 Style Guide 的頁面。
CSS -> Generate List, Generate Page
所有的 input 由產生的 css 來做判斷,這樣才能跟所有的 CSS Preprocessor 整合。
計畫:
做成 APP, 整進 Django
畫面可以由 Bootsrap 的 tab 來分段較順手跟簡單。
- 我們需要設定的,是檔案清單位置,還有 CSS 檔位置。
檔案清單在 setting.py
CSS 位置都寫在 Settting.py 集中 setting
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for django_kss-0.1.8-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 991aaa00a94faf90b66f5635784502b8c403b0fb8cef523733e22282e3fefdc5 |
|
MD5 | 0d52daa185d2966acc5f742c5a72d7d5 |
|
BLAKE2b-256 | b647677a8aa360edfe3431b8e76afac30844e4d6cb60943d1227ebd15b275699 |
Hashes for django-kss-0.1.8.macosx-10.10-intel.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e1f7ea8acea60f89cd79c1ae9b4fece0939b44d438623e4169f49451863997f |
|
MD5 | 9b2a0d814b20ab9036a20405027645bf |
|
BLAKE2b-256 | c274a4c5840ff8cd25f6a67a35bf4878ba267d92a490dd29b728d68b0ac01f9b |