Skip to content

Commit 3968867

Browse files
Merge pull request #1 from edx/andya/bootstrap-theme
First version of the edX Bootstrap theme
2 parents 546a824 + 293af07 commit 3968867

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+5290
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
css
2+
samples/edx-bootstrap
3+
node_modules

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.edx-bootstrap
2+
.gitignore
3+
.npmignore
4+
.travis.yml
5+
_config.yml
6+
doc
7+
node_modules
8+
package.json
9+
test

Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.PHONY: clean docs help install preview quality samples test
2+
3+
.DEFAULT_GOAL := help
4+
5+
help: ## display this help message
6+
@echo "Please use \`make <target>' where <target> is one of"
7+
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}'
8+
9+
install: ## install requirements
10+
npm install
11+
12+
clean: ## remove build artifacts
13+
rm -rf css/
14+
rm -rf samples/css/
15+
rm -rf samples/edx-bootstrap/
16+
17+
samples: clean ## build the samples
18+
mkdir samples/edx-bootstrap
19+
cp -r fonts/ samples/edx-bootstrap/fonts
20+
cp -r sass/ samples/edx-bootstrap/sass
21+
mkdir samples/css
22+
mkdir samples/css/edx
23+
mkdir samples/css/open-edx
24+
./node_modules/node-sass/bin/node-sass samples/edx/sass --output samples/edx/css --include-path samples --include-path node_modules
25+
./node_modules/node-sass/bin/node-sass samples/open-edx/sass --output samples/open-edx/css --include-path samples --include-path node_modules
26+
27+
build: clean ## build the npm package
28+
29+
preview: samples ## build the preview site
30+
aws s3 sync samples s3://${S3_PREVIEW_DOMAIN}/$(shell git rev-parse --abbrev-ref HEAD)
31+
@echo Preview generated to http://${S3_PREVIEW_DOMAIN}/$(shell git rev-parse --abbrev-ref HEAD)
32+
33+
test: clean samples ## run tests
34+
35+
xxx:
36+
echo $(shell git rev-parse --abbrev-ref HEAD)
37+

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.rst

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
EdX Bootstrap
2+
=============
3+
4+
This library provides `Bootstrap 4`_ themes for use within Open edX. It
5+
includes an Open edX theme as well as an edX-branded theme. In addition,
6+
it includes the `Open Sans typeface`_ which is the default font for Open edX.
7+
8+
.. _Bootstrap 4: https://v4-alpha.getbootstrap.com/
9+
.. _Open Sans typeface: https://fonts.google.com/specimen/Open+Sans
10+
11+
Getting Started
12+
---------------
13+
14+
The edx-bootstrap library should be installed via npm:
15+
16+
npm install edx-bootstrap
17+
18+
Once installed, you can generate the `Sample pages`_:
19+
20+
make samples
21+
22+
For a full list of the available make targets, run:
23+
24+
make help
25+
26+
.. sample pages: https://github.com/edx/edx-bootstrap/blob/master/samples
27+
28+
Using The EdX Bootstrap Theme
29+
-----------------------------
30+
31+
To use an edX Bootstrap theme, import the ``_theme.scss`` partial file from
32+
your chosen theme into your own Sass. Note that this file must be loaded before
33+
any Bootstrap partial files so that the theming will be applied.
34+
35+
See the `sample Open edX SASS file`_ for a simple example.
36+
37+
.. sample Open edX SASS file: https://github.com/edx/edx-bootstrap/blob/master/samples/open-edx/sass/sample.scss
38+
39+
License
40+
-------
41+
42+
The code in this repository is licensed under version 3 of the AGPL
43+
unless otherwise noted. Please see the `LICENSE`_ file for details.
44+
45+
.. _LICENSE: https://github.com/edx/edx-bootstrap/blob/master/LICENSE
46+
47+
How To Contribute
48+
-----------------
49+
50+
Contributions are very welcome. Please read `How To Contribute`_ for details.
51+
Even though they were written with ``edx-platform`` in mind, the guidelines
52+
should be followed for Open edX code in general.
53+
54+
.. _How To Contribute: https://github.com/edx/edx-platform/blob/master/CONTRIBUTING.rst
55+
56+
Reporting Security Issues
57+
-------------------------
58+
59+
Please do not report security issues in public. Please email security@edx.org.
60+
61+
Getting Help
62+
------------
63+
64+
Have a question about this repository, or about Open edX in general? Please
65+
refer to this `list of resources`_ if you need any assistance.
66+
67+
.. _list of resources: https://open.edx.org/getting-help
45.7 KB
Binary file not shown.
25.1 KB
Binary file not shown.
45.6 KB
Binary file not shown.
48.7 KB
Binary file not shown.
26.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)