From abb42dcd4886705d6ba8af27f68ef605218ac67c Mon Sep 17 00:00:00 2001 From: Philip Paquette Date: Wed, 11 Sep 2019 12:58:45 -0400 Subject: Added ReadtheDocs documentation for the public API - Reformatted the docstring to be compatible - Added tests to make sure the documentation compiles properly - Added sphinx as a pip requirement Co-authored-by: Philip Paquette Co-authored-by: notoraptor --- diplomacy/web/__init__.py | 19 +++++++++++++++++++ diplomacy/web/svg_to_react.py | 13 ++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 diplomacy/web/__init__.py (limited to 'diplomacy/web') diff --git a/diplomacy/web/__init__.py b/diplomacy/web/__init__.py new file mode 100644 index 0000000..a2441fc --- /dev/null +++ b/diplomacy/web/__init__.py @@ -0,0 +1,19 @@ +# ============================================================================== +# Copyright (C) 2019 - Philip Paquette, Steven Bocco +# +# This program is free software: you can redistribute it and/or modify it under +# the terms of the GNU Affero General Public License as published by the Free +# Software Foundation, either version 3 of the License, or (at your option) any +# later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more +# details. +# +# You should have received a copy of the GNU Affero General Public License along +# with this program. If not, see . +# ============================================================================== +""" Web + - Contains the web interface +""" \ No newline at end of file diff --git a/diplomacy/web/svg_to_react.py b/diplomacy/web/svg_to_react.py index dafe4d3..6ee5049 100644 --- a/diplomacy/web/svg_to_react.py +++ b/diplomacy/web/svg_to_react.py @@ -15,7 +15,7 @@ # with this program. If not, see . # ============================================================================== """ Helper script to convert a SVG file into a React JS component file. - Type `python