1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-17 23:05:00 -05:00

Proofreading docs.

This commit is contained in:
R0b0t1 2010-06-13 06:11:24 -05:00
parent 136b5f5c20
commit 7d443a246a
11 changed files with 47 additions and 55 deletions

View File

@ -9,22 +9,21 @@ for Simba.
Documentation system Documentation system
-------------------- --------------------
The documentation system we use is sphinx. The link to sphinx can The documentation system we use is sphinx. The link to sphinx can
be found at the bottom of the page at all times. be found at the bottom of the page.
.. note:: .. note::
It is important to note that there is also a database SQL fulltext engine It is important to note that there is also a database SQL fulltext engine
called Sphinx, but this is not the project we use. We use the Sphinx called Sphinx, but this is not the project we use. We use the Sphinx
``documentation system`` ( http://sphinx.pocoo.org/ ) "documentation system" ( http://sphinx.pocoo.org/ )
Building the documentation Building the documentation
-------------------------- --------------------------
In the future, the online documentation will be refreshed every hour. In the future, the online documentation will be refreshed every hour. However,
if you want to build the documentation yourself, you should install
``python-sphinx``.
If you want to build the documentation yourself, you should install Move to the ``Simba/doc/sphinx`` directory and run ``make all``.
sphinx-python. This will place an HTML version of the documentation in ``_build/html``.
Move to the ``Simba/doc/sphinx`` directory and call ``make all``.
This will place the doc in html format in ``_build/html``.
.. note:: .. note::
The build instructions are for Linux only. If you want to build the doc on The build instructions are for Linux only. If you want to build the doc on
@ -40,8 +39,7 @@ http://docutils.sourceforge.net/docs/user/rst/quickstart.html
As stated above, the markup language is not the hard part about writing As stated above, the markup language is not the hard part about writing
documentation; the hard part is simply coming up with good content suited for documentation; the hard part is simply coming up with good content suited for
the documentation. This process is rather self explanatory, so we will not cover the documentation.
this further.
Directory structure Directory structure
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
@ -53,7 +51,7 @@ then there should be no worries as to where to place your new text. However if
you are writing a new chapter, then placing the file in the correct directory is you are writing a new chapter, then placing the file in the correct directory is
something we'd like you to consider. something we'd like you to consider.
If you wrote a chapter for the ``Simba Reference`` or ``Scripting Reference`` If you write a chapter for the ``Simba Reference`` or ``Scripting Reference``
or ``Features`` or ``Features``
part of the documentation, place it in the ``simbaref``, ``scriptref`` or part of the documentation, place it in the ``simbaref``, ``scriptref`` or
``features`` folder repectively. ``features`` folder repectively.

View File

@ -1,4 +1,4 @@
Feature overview Feature Overview
================ ================
.. toctree:: .. toctree::

View File

@ -1,9 +1,8 @@
Updater in Simba Updater in Simba
================ ================
A button appear, and a text message. blabla A notice should appear in the Simba GUI, or you can alternatively
use Tools -> Update.
Don't forget to restart Simba when it has been updated!
Don't forget to restart Simba when it has been updated, blabla

View File

@ -1,4 +1,5 @@
Simba Script Manager Simba Script Manager
==================== ====================
Non technical script manager doc. Community-created scripts will be available for download from the
Script Manager.

View File

@ -1,7 +1,7 @@
Getting started with Simba Getting started with Simba
========================== ==========================
This page will help you install Simba and point you at some basic Simba This page will help you install Simba and highlight some basic Simba
features. features.
Installing Simba Installing Simba
@ -19,33 +19,32 @@ Simba installer
Everyone can download Simba at http://wizzup.org/simba/ Everyone can download Simba at http://wizzup.org/simba/
Go to download, and download the Simba installer. Go to download, and download the Simba installer.
Once it is done downloading, simple run the installer and follow the steps. Once it is done downloading, simply run the installer and follow the steps.
.. note:: .. note::
Simba will install to C:/ by default; if you want to install it Simba will install to C:/ by default; if you want to install it
somewhere else, make sure you select a different location in the installer. somewhere else, make sure you select a different location!
Once you have installed Simba, make sure you update it at least once, Simba will probably tell you there is an update available. In this case, an
to get a more recent version of Simba. update button will appear. Alternatively you can update Simba using
Tools -> Update.
Simba will tell you there is an update and an update button will appear.
Alternatively you can update Simba using Tools -> Update.
.. note:: .. note::
Updating Simba regularly is recommended. Updating Simba regularly is recommended.
Simba binary Simba Binary
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is harder and not recommended. Steps on how to do this will follow later. This is not the recommended method due to some computers having problems
with FreePascal and Lazarus. However, all you must do is install FreePascal
For now, simply stick to the installer and update and Lazarus (from repos or non) and open the Simba project file located
Simba after the install has completed. in the repository (retrieve the project with git).
You should then see a prominent "compile" button. Yay!
Setting up SRL 4 with Simba Setting up SRL 4 with Simba
--------------------------- ---------------------------
If you were using the :ref:`simba-installer` then you can simple enable the If you were using the :ref:`simba-installer` then you can simply enable the
``SRL Updater`` extension. (Go to View -> Extensions and enable srl.sex) ``SRL Updater`` extension. (Go to View -> Extensions and enable srl.sex)
This is the only supported way. You can simply do a svn checkout on the srl This is the only supported way. You can simply do a svn checkout on the srl
@ -63,5 +62,5 @@ Scripts can be downloaded with the Script Manager, in Tools -> Script Manager.
Troubleshooting Troubleshooting
--------------- ---------------
If you run into problems that are not mentioned here, make sure you check out If you run into problems that are not mentioned here, make sure you look at
the :ref:`Troubleshooting` page. the :ref:`Troubleshooting` page.

View File

@ -6,7 +6,7 @@
Welcome to the Simba documentation! Welcome to the Simba documentation!
=================================== ===================================
Welcome to the Documentation of the Simba project. Welcome to the Documentation for the Simba project.
Contents: Contents:

View File

@ -1,7 +1,7 @@
PyMML Color PyMML Color
=========== ===========
This is the PyMML color class. This is the PyMML Color class.
.. automodule:: mmlcolor .. automodule:: mmlcolor
:members: :members:

View File

@ -1,7 +1,7 @@
PyMML Mouse PyMML Mouse
=========== ===========
This is the PyMML mouse class. This is the PyMML Mouse class.
.. automodule:: mmlmouse .. automodule:: mmlmouse
:members: :members:

View File

@ -1,17 +1,15 @@
Writing Simba Extensions Writing Simba Extensions
======================== ========================
Simba extensions are scripts written in PascalScript that can be embedded into Simba extensions are scripts written for the interpreter that can be embedded into
Simba. Purposes vary from updaters to full blown dtm and bitmap editors. Simba. Purposes vary from updaters to editors.
.. FIXME link to dtm and bitmap .. FIXME link to dtm and bitmap
How they work How they work
------------- -------------
Extensions are event based. This means you don't have some ``loop`` in your Extensions are event based. Functions from the extension are called based on external events.
program that never ends and does all the logic for you. When a system is event
based, you implement some functions and those are called on a certain event.
Extension core hooks Extension core hooks
-------------------- --------------------
@ -29,7 +27,7 @@ Called when the Extension is initialized.
procedure init; procedure init;
begin; begin;
Writeln('Init your extension here.'); Writeln('Initialize your extension here.');
end; end;
If you want to add a button to the menu, do it now. If you want to add a button to the menu, do it now.
@ -79,7 +77,7 @@ Called upon freeing the extension. Usually this means that Simba is closed.
procedure free; procedure free;
begin begin
if started then if started then
writeln('Init was called'); writeln('Free() was called');
end; end;
From the SRL updater extension: From the SRL updater extension:
@ -91,7 +89,7 @@ From the SRL updater extension:
if (started) then if (started) then
Timer.Enabled := False; Timer.Enabled := False;
{ Freeing the components is not needed, as they will be freed { Freeing the components is not needed, as they will be freed
upon the freeing of Simba. } upon the closure of Simba. }
end; end;
attach attach
@ -187,8 +185,8 @@ onColourPick
onScriptStart onScriptStart
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
Special cases Special Cases
------------- ~~~~~~~~~~~~~
Multiple extensions hooking onto the same event Multiple extensions hooking onto the same event
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -196,23 +194,20 @@ Multiple extensions hooking onto the same event
So what happens when multiple extensions hook onto the same event/hook? So what happens when multiple extensions hook onto the same event/hook?
The behaviour is currently defined, but prone to change in the near future. The behaviour is currently defined, but prone to change in the near future.
Currently simply all extensions are called. The order is simple the order they Currently all extensions are called in the order they were loaded.
were loaded.
The behaviour will probably change to something like the following: The behaviour will probably change to something like the following:
In loading order, extensions are called with the proper hook. As soon as one In the order they were loaded, call any available extensions. The first
extension returns something that is not equal to zero, it will bail and stop extension to return non-zero terminates the calling loop.
calling other events. Apart from not calling other events, the hook will not
allow the action it is bound to.
Pitfalls Pitfalls
-------- --------
Extensions can be very dangerous in the sense that they run on the main thread Extensions can be very dangerous in the sense that they run on the main thread
of Simba, it is very simple to crash Simba or make it infinitely loop. There is of Simba, it is very easy to crash Simba or make it hang. There is
no way to prevent this, so make sure to check what you're doing before you try no way to prevent this, so make sure to check what you're doing before you try
your own (or someone else's extension) your own (or someone else's) extension.

View File

@ -4,7 +4,7 @@ Troubleshooting
=============== ===============
This is a general troubleshooting page and will hopefully cover all potential This is a general troubleshooting page and will hopefully cover all potential
problem you may run into. problems you may encounter.
Problems when installing or starting Simba Problems when installing or starting Simba
------------------------------------------ ------------------------------------------

View File

@ -2,7 +2,7 @@ What's new in Simba?
==================== ====================
Currently Simba is still in its beta stages; this includes the documentation. Currently Simba is still in its beta stages; this includes the documentation.
You will probably notice some parts of the documentation aren't finished or just You will probably notice some parts of the documentation aren't finished or are just
plain missing. plain missing.
So what's new in Simba? This documentation system. So what's new in Simba? This documentation system.