Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Merge pull request #10 from jwhitlock/update_2016
Browse files Browse the repository at this point in the history
bug 950945: Update for 2016
  • Loading branch information
stephaniehobson committed Sep 9, 2016
2 parents a60ba3e + 8cef2c3 commit d563c89
Show file tree
Hide file tree
Showing 9 changed files with 586 additions and 112 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.sw[po]
*.egg-info
*.pyc
dist
build
373 changes: 373 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
include README.rst mdn_theme/mdn/layout.html mdn_theme/mdn/theme.conf
exclude Makefile
exclude requirements.txt
include LICENSE
include README.rst
include mdn_theme/mdn/layout.html
include mdn_theme/mdn/theme.conf
recursive-include mdn_theme/mdn/static *
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.PHONY: help clean clean-pyc clean-build docs docs-fresh

help:
@echo "clean - remove build artifacts"
@echo "sdist - package"
@echo "test-release - package and upload a release to the test PyPI server"
@echo "release - package and upload a release"

clean:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +

sdist: clean
python setup.py sdist
ls -l dist
check-manifest
pyroma dist/`ls -t dist | head -n1`

test-release: sdist
python setup.py register -r https://testpypi.python.org/pypi
python setup.py sdist bdist_wheel upload -r https://testpypi.python.org/pypi
python -m webbrowser -n https://testpypi.python.org/pypi/mdn-sphinx-theme

release: sdist
python setup.py sdist bdist_wheel upload
python -m webbrowser -n https://pypi.python.org/pypi/mdn-sphinx-theme
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
Mozilla Developer Network Sphinx theme
Mozilla Developer Network Sphinx Theme
======================================

This is a version of the Mozilla Developer Network theme, for
`the Sphinx documentation engine. <http://sphinx.pocoo.org>`_.
the `Sphinx documentation engine`_. It is used for the
`Kuma development documentation`_.

Here is how I use it
--------------------
Expand Down Expand Up @@ -34,3 +35,6 @@ packages listed there::

Then configure your Readthedocs project to use that requirement file
before rendering your project's documentation.

.. _`Sphinx documentation engine`: http://www.sphinx-doc.org/en/stable/
.. _`Kuma development documentation`: https://kuma.readthedocs.io/en/latest/
3 changes: 2 additions & 1 deletion mdn_theme/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os

__version__ = '2015.2'
__version__ = '2016.0'

here = os.path.dirname(__file__)


def get_theme_dir():
return here
256 changes: 148 additions & 108 deletions mdn_theme/mdn/layout.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Quality checks for the distribution files
check-manifest==0.33
pyroma==2.0.2

# Build a wheel
wheel==0.24.0
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@ def find_version(*file_paths):
zip_safe=False,
include_package_data=True,
install_requires=['sphinx'],
url='https://github.com/mdn/sphinx-theme',
license='MPL 2.0',
keywords='sphinx extension theme mdn',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Topic :: Documentation',
'Topic :: Software Development :: Documentation',
]
)

0 comments on commit d563c89

Please sign in to comment.