Jump to content

User:Humitos/SugarToolkitDocs: Difference between revisions

From Sugar Labs
Humitos (talk | contribs)
Created page with "I started creating the [http://git.sugarlabs.org/sugar-toolkit-gtk3 sugar-toolkit-gtk3]'s documentation using [http://sphinx.pocoo.org/ Sphinx]. It would be great to do some w..."
 
Humitos (talk | contribs)
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
  sudo yum install python-sphinx
  sudo yum install python-sphinx


* Run the command that create some configs
* Download the source code


cd /home/humitos/sugar-jhbuild/source/sugar-toolkit-gtk3/src/sugar3
  git clone gitorious@git.sugarlabs.org:~humitos/sugar-toolkit-gtk3/humitoss-sugar-toolkit-gtk3.git
  sphinx-apidoc --doc-author="Manuel Kaufmann" --full --doc-version="0.96" --doc-release="0.96" --doc-project="Sugar Toolkit Gtk3" --output-dir="doc" .
 
* Create the symbolic links of imports required
 
  cd humitoss-sugar-toolkit-gtk3
  mkdir docs
  ln -s ~/sugar-jhbuild/install/lib/python2.7/site-packages/sugar3 .
  ln -s ~/sugar-jhbuild/install/lib/python2.7/site-packages/sugar .
 
* Run the command that creates the sources
 
  sphinx-apidoc --doc-author="Manuel Kaufmann" --full --doc-version="0.96" \
              --doc-release="0.96" --doc-project="Sugar Toolkit Gtk3" \
              --output-dir="source" ../src/sugar3


* Generate the documentation
* Generate the documentation


  make html
  make html
* Copy to the server
scp -r build/html/* mkaufmann.com.ar:~/public_html/sugar-toolkit-gtk3


= OnLine Documentation =
= OnLine Documentation =
Line 24: Line 40:
= References =
= References =


* Read the docs: http://read-the-docs.readthedocs.org/en/latest/index.html
* Mail suggesting this: http://lists.sugarlabs.org/archive/sugar-devel/2012-July/038419.html
* Mail suggesting this: http://lists.sugarlabs.org/archive/sugar-devel/2012-July/038419.html
* http://sphinx.pocoo.org/ext/autodoc.html

Latest revision as of 23:14, 15 July 2012

I started creating the sugar-toolkit-gtk3's documentation using Sphinx. It would be great to do some work on this because I think it's really necessary to have a kind of documentation for this. At the moment there are many errors on the doc generation that should be fixed to get a good polished work.

Commands to get the documentation ready

  • Install Sphinx
sudo yum install python-sphinx
  • Download the source code
 git clone gitorious@git.sugarlabs.org:~humitos/sugar-toolkit-gtk3/humitoss-sugar-toolkit-gtk3.git
  • Create the symbolic links of imports required
 cd humitoss-sugar-toolkit-gtk3
 mkdir docs
 ln -s ~/sugar-jhbuild/install/lib/python2.7/site-packages/sugar3 .
 ln -s ~/sugar-jhbuild/install/lib/python2.7/site-packages/sugar .
  • Run the command that creates the sources
sphinx-apidoc --doc-author="Manuel Kaufmann" --full --doc-version="0.96" \
              --doc-release="0.96" --doc-project="Sugar Toolkit Gtk3" \
              --output-dir="source" ../src/sugar3
  • Generate the documentation
make html
  • Copy to the server
scp -r build/html/* mkaufmann.com.ar:~/public_html/sugar-toolkit-gtk3

OnLine Documentation

There is a web page for testing this commands and to know how it will looks and feels

References