Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Commit d94c708

Browse files
authored
Merge pull request #377 from diraol/release-2017.1b3
Updating version information for release.
2 parents bea971b + 52f0c46 commit d94c708

62 files changed

Lines changed: 453 additions & 290 deletions

Some content is hidden

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

AUTHORS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Authors
66
- Beraldo Leal <beraldo AT ncc DOT unesp DOT br>
77
- Carlos Eduardo Moreira dos Santos <cadu AT ncc DOT unesp DOT br>
88
- Diego Rabatone Oliveira <diraol AT ncc DOT unesp DOT br>
9+
- Erick Vermot <erick.vermot AT gmail DOT com>
910
- Macártur de Sousa Carvalho <macartur.sc AT gmail DOT com>
1011
- Raphael Cobe <rmcobe AT ncc DOT unesp DOT br>
1112
- Renan Rodrigo <renanrb AT ime DOT usp DOT br>

CHANGELOG.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Security
2424
========
2525

2626

27-
[2017.1b3] - "bethania" beta3 - 2017-06-14
27+
[2017.1b3] - "bethania" beta3 - 2017-06-16
2828
******************************************
2929
Added
3030
=====
@@ -33,10 +33,12 @@ Added
3333
Changed
3434
=======
3535
- Raise ValueError if not using bytes (e.g. string) in BinaryData.
36+
- Changed docs to show a dropdown button with all python-openflow releases.
3637

3738
Fixed
3839
=====
3940
- [v0x01] Fixed method to unpack error messages.
41+
- documentation: fixed links and build warnings.
4042
- A few bug fixes.
4143

4244

docs/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
_rebuild
2-
modules.rst
32
python.inv

docs/Makefile

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS =
5+
SPHINXOPTS = -W
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build
9+
VERSIONS = master,bethania
10+
MAIN_REF = bethania
911

1012
# User-friendly check for sphinx-build
1113
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
@@ -53,6 +55,17 @@ help:
5355
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
5456
@echo " coverage to run coverage check of the documentation (if enabled)"
5557
@echo " dummy to check syntax errors of document sources"
58+
@echo " versions to make all docs HTML files"
59+
60+
.PHONY: versions
61+
versions:
62+
rm python-openflow -rf && mkdir python-openflow
63+
for version in `echo $(VERSIONS) | sed 's/,/ /g'`; do \
64+
git checkout $$version \
65+
&& make SPHINXOPTS="-A versions=\"$(VERSIONS)\" -A current_version=\"$$version\"" \
66+
&& mv _build/dirhtml python-openflow/$$version; \
67+
done
68+
cp python-openflow/$(MAIN_REF)/* python-openflow/ -R
5669

5770
.PHONY: clean
5871
clean:
@@ -61,7 +74,7 @@ clean:
6174

6275
.PHONY: html
6376
html:
64-
sphinx-apidoc -o . ../pyof/ -d10 -M
77+
sphinx-apidoc -o . ../pyof/ -d10 -M -T
6578
sed -i "/Submodules/,+1d" *.rst
6679
sed -i "/Subpackages/,+1d" *.rst
6780
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@@ -70,7 +83,7 @@ html:
7083

7184
.PHONY: dirhtml
7285
dirhtml:
73-
sphinx-apidoc -o . ../pyof/ -d10 -M
86+
sphinx-apidoc -o . ../pyof/ -d10 -M -T
7487
sed -i "/Submodules/,+1d" *.rst
7588
sed -i "/Subpackages/,+1d" *.rst
7689
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@@ -242,7 +255,7 @@ dummy:
242255
@echo "Build finished. Dummy builder generates no files."
243256

244257
livehtml:
245-
sphinx-apidoc -o . ../pyof/ -d10 -M
258+
sphinx-apidoc -o . ../pyof/ -d10 -M -T
246259
sed -i "/Submodules/,+1d" *.rst
247260
sed -i "/Subpackages/,+1d" *.rst
248261
sphinx-autobuild -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml -z ../pyof

docs/_static/css/kytos.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@
1616
background: #68286a;
1717
}
1818

19+
.navbar-kytos #dropdown-versions {
20+
background-color: #322c5d;
21+
border-color: #4D4778;
22+
margin-top: 3%;
23+
margin-left: 4%;
24+
}
25+
1926
.navbar-kytos .navbar-brand {
2027
-webkit-transition: all .3s;
2128
-moz-transition: all .3s;

docs/_templates/navbar.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@
1818
</div>
1919

2020
<div class="collapse navbar-collapse nav-collapse">
21+
{% if versions %}
22+
<div class="dropdown pull-right">
23+
<button id="dropdown-versions" class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"> {{ current_version }}
24+
<span class="caret"></span></button>
25+
<ul class="dropdown-menu">
26+
{%- for version in versions.split(',') %}
27+
<li><a href="/python-openflow/{{version}}">{{ version }}</a></li>
28+
{%- endfor %}
29+
</ul>
30+
</div>
31+
{% endif %}
32+
2133
{% block navbarsearch %}
2234
{% include "navbarsearchbox.html" %}
2335
{% endblock %}

docs/conf.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
version = u'2017.1'
6868
show_version = False
6969
# The full version, including alpha/beta/rc tags.
70-
release = u'2017.1b2'
70+
release = u'2017.1b3'
7171

7272
# The language for content autogenerated by Sphinx. Refer to documentation
7373
# for a list of supported languages.
@@ -111,6 +111,9 @@
111111
# If true, keep warnings as "system message" paragraphs in the built documents.
112112
#keep_warnings = False
113113

114+
# Remove nonlocal_uri warnings
115+
suppress_warnings = ['image.nonlocal_uri']
116+
114117
# If true, `todo` and `todoList` produce output, else they produce nothing.
115118
todo_include_todos = False
116119

@@ -370,14 +373,8 @@
370373
# If true, do not generate a @detailmenu in the "Top" node's menu.
371374
#texinfo_no_detailmenu = False
372375

373-
# Example configuration for intersphinx: refer to the Python standard library.
374-
# Note: links to Python doc only work if you are online or have python.inv
375-
# file. To download it, run:
376-
# curl https://docs.python.org/3/objects.inv >python.inv
377-
intersphinx_mapping = {'python': ('https://docs.python.org/3',
378-
(None, 'python.inv')),
379-
'kytos': ('http://docs.kytos.io/kytos',
380-
(None, 'kytos.inv'))}
376+
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
377+
'kytos': ('http://docs.kytos.io/kytos', None)}
381378

382379
# Napoleon settings from http://www.sphinx-doc.org/en/stable/ext/napoleon.html
383380
napoleon_google_docstring = True

docs/get_involved.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ We'd love for you to contribute to our source code and to make Kytos better
55
than it is today!
66

77
This is one component of the *Kytos* project. For more information on how to get
8-
involved, please, visit the section :doc:`kytos:get_involved` of the *Kytos*
8+
involved, please, visit the section :doc:`kytos:contributing` of the *Kytos*
99
documentation.

docs/hacking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Hacking
33
#######
44

5-
.. note:: Before reading this file, please read the :doc:`guidelines` section
5+
.. note:: Before reading this file, please read the :doc:`kytos:contributing` section
66
that contains the main guidelines of the project.
77

88
Development Environment Setup

docs/toc/introduction.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
:orphan:
2+
13
############
24
Introduction
35
############

0 commit comments

Comments
 (0)