Skip to content

Commit adb0181

Browse files
author
Emmanouil Konstantinidis
committedDec 18, 2015
Use npm to get bootstrap etc
1 parent ce9e4f1 commit adb0181

17 files changed

+1003
-10
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ djangorestframeworkdocs.egg-info/
99

1010
demo/env/
1111
demo/db.sqlite3
12+
13+
rest_framework_docs/static/node_modules/

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Document Web APIs made with Django Rest Framework.
66
### Supports
77

88
- Python (2.7, 3.3, 3.4, 3.5)
9-
- Django (1.7, 1.8, 1.9)
9+
- Django (1.8, 1.9)
1010
- Django Rest Framework (3+)
1111

1212

‎rest_framework_docs/static/css/style.css

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.

‎rest_framework_docs/static/fonts/fontawesome-webfont.svg

+655
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

‎rest_framework_docs/static/fonts/glyphicons-halflings-regular.svg

+288
Loading
Binary file not shown.
Binary file not shown.
Binary file not shown.

‎rest_framework_docs/static/less/style.less

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
@import "node_modules/bootstrap/less/bootstrap";
2+
@import "node_modules/bootswatch/flatly/variables.less";
3+
@import "node_modules/font-awesome/less/font-awesome.less";
4+
@import url(http://fonts.googleapis.com/css?family=ABeeZee);
5+
16
/* @group Colours */
27

38
@ThemeAlt: #c9c9c9;
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "django-rest-framework-docs",
3+
"version": "0.0.1",
4+
"description": "Document Web APIs made with Django Rest Framework",
5+
"main": "index.js",
6+
"scripts": {
7+
"build-font-awesome": "cp -r node_modules/font-awesome/fonts .",
8+
"build-bootstrap-fonts": "cp -r node_modules/bootstrap/fonts .",
9+
"build-less": "lessc --clean-css less/style.less css/style.css",
10+
"watch-less": "watch 'npm run build-less' less/",
11+
"build": "npm run build-font-awesome && npm run build-bootstrap-fonts && npm run build-less",
12+
"start": "npm run build && npm run watch-less",
13+
"test": "echo \"Error: no test specified\" && exit 1"
14+
},
15+
"repository": {
16+
"type": "git",
17+
"url": "git+https://github.com/ekonstantinidis/django-rest-framework-docs.git"
18+
},
19+
"keywords": [
20+
"django",
21+
"rest",
22+
"framework",
23+
"docs",
24+
"jekyll"
25+
],
26+
"author": "Emmanouil Konstantinidis",
27+
"license": "SEE LICENSE IN LICENSE",
28+
"bugs": {
29+
"url": "https://github.com/ekonstantinidis/django-rest-framework-docs/issues"
30+
},
31+
"homepage": "https://www.drfdocs.com/",
32+
"dependencies": {
33+
"bootstrap": "=3.3.6",
34+
"bootswatch": "=3.3.6",
35+
"font-awesome": "=4.5.0"
36+
},
37+
"devDependencies": {
38+
"less": "=2.5.3",
39+
"less-plugin-clean-css": "=1.5.1",
40+
"watch": "=0.16.0"
41+
}
42+
}

‎rest_framework_docs/templates/rest_framework_docs/base.html

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static from staticfiles %}
22

33
<!DOCTYPE html>
44
<html>
@@ -9,15 +9,8 @@
99

1010
<title>{% block title %}DRF Docs{% endblock %}</title>
1111

12-
<!-- Bootstrap & Flatly -->
13-
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/flatly/bootstrap.min.css" rel="stylesheet">
14-
<!-- Font Awesome -->
15-
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet">
1612
<!-- Custom Style -->
17-
<link rel="stylesheet/less" type="text/css" href="{% static "less/style.less" %}" />
18-
19-
<!-- LESS CSS -->
20-
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.3/less.min.js"></script>
13+
<link rel="stylesheet" href="{% static "css/style.css" %}">
2114
</head>
2215

2316
<body>

0 commit comments

Comments
 (0)
Please sign in to comment.