Commits

Anonymous committed b29d32e

added quickstart support

Comments (0)

Files changed (3)

sphinx/builders/eclipsehelp.py

     def handle_finish(self):
         build_eclipse_plugin(self, self.outdir)
 
-def setup(app):
-    "the Sphinx extension setup function which adds a config value and a builder"
-    app.add_config_value('eclipse_plugin_id', "com.example.sphinx.eclipsehelp.no.plugin.id.given", False)
-    app.add_config_value('eclipse_plugin_nice_name', "Nameless Sphinx Eclipsehelp plugin", False)
-    app.add_config_value('eclipse_plugin_provider_name', "Nameless Sphinx Eclipsehelp plugin provider", False)
-    app.add_config_value('eclipse_plugin_version', "1.0.0", False)
-    app.add_config_value('eclipse_create_jar', False, False)
-    app.add_config_value('eclipse_jar_name', "sphinx_generated_eclipse_help.jar", False)
-    app.add_builder(EclipseHelpBuilder)
-
         qthelp_basename = (lambda self: make_filename(self.project), None),
 
         # Eclipse help only options
-        eclipse_plugin_id = ('com.example.sphinx.eclipsehelp.no.plugin.id.given', None),
-        eclipse_plugin_nice_name = (lambda self: self.html_title, 'eclipsehelp'),
-        eclipse_plugin_provider_name = ('Nameless Sphinx Eclipsehelp plugin provider', None),
-        eclipse_plugin_version = ('1.0.0', None),
+        eclipse_plugin_id = (lambda self: make_filename(self.project)+'.help', None),
+        eclipse_plugin_nice_name = (lambda self: self.html_title, None),
+        eclipse_plugin_provider_name = (lambda self: self.copyright, None),
+        eclipse_plugin_version = (lambda self: self.release, None),
         eclipse_create_jar = (False, None),
-        eclipse_jar_name = ('sphinx_generated_eclipse_help.jar', None),
+        eclipse_jar_name = (lambda self: make_filename(self.project)+'.jar', None),
 
         # LaTeX options
         latex_documents = ([], None),

sphinx/quickstart.py

 \t@echo "  json      to make JSON files"
 \t@echo "  htmlhelp  to make HTML files and a HTML help project"
 \t@echo "  qthelp    to make HTML files and a qthelp project"
+\t@echo "  eclipsehelp to make HTML files and an Eclipse help plugin"
 \t@echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
 \t@echo "  changes   to make an overview of all changed/added/deprecated items"
 \t@echo "  linkcheck to check all external links for integrity"
 \t@echo "Build finished; now you can run HTML Help Workshop with the" \\
 \t      ".hhp project file in %(rbuilddir)s/htmlhelp."
 
+eclipsehelp:
+\t$(SPHINXBUILD) -b eclipsehelp $(ALLSPHINXOPTS) %(rbuilddir)s/eclipsehelp
+\t@echo
+\t@echo "Build finished; now you can copy the %(rbuilddir)s/eclipsehelp dir" \\
+\t      "to your eclipse plugin directory."
+
 qthelp:
 \t$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) %(rbuilddir)s/qthelp
 \t@echo
 \techo.  pickle    to make pickle files
 \techo.  json      to make JSON files
 \techo.  htmlhelp  to make HTML files and a HTML help project
+\techo.  eclipsehelp to make HTML files and a HTML help project
 \techo.  qthelp    to make HTML files and a qthelp project
 \techo.  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter
 \techo.  changes   to make an overview over all changed/added/deprecated items
 \tgoto end
 )
 
+if "%%1" == "eclipsehelp" (
+\t%%SPHINXBUILD%% -b eclipsehelp %%ALLSPHINXOPTS%% %(rbuilddir)s/eclipsehelp
+\techo.
+\techo.Build finished; now you can copy the %(rbuilddir)s/eclipsehelp dir ^
+to your Eclipse plugin directory.
+\tgoto end
+)
+
 if "%%1" == "qthelp" (
 \t%%SPHINXBUILD%% -b qthelp %%ALLSPHINXOPTS%% %(rbuilddir)s/qthelp
 \techo.