Signed-off-by: andy pugh <andy@bodgesoc.org>
docs: support top-level html file

When asciidoc builds .html files from .txt files, it needs to be told the
location of the .css and .js files that the .html files are going to
reference.

We used to do this in a way that worked fine for .html files in
subdirectories, but did not work for "top-level" .html files, ie files
living directly in docs/html, generated from .txt files living directly
in docs/src.

We never knew this because we dont generate any top-level .html files
using asciidoc.

There were two problems:

1. It would miss-compute the relative path for top-level html files, and
use "../" instead of nothing.

2. When given a stylesdir or scriptsdir attribute, asciidoc builds the
path as "$DIR/$FILE", which is usually sensible.  But asciidoc doesn't
check for an empty $DIR, and mistakenly uses "/$FILE" if given an empty
$DIR.

This commit fixes the path computation to work in all cases, and changes
the asciidoc arguments so stylesdir and scriptsdir are only supplied if
they're non-empty.

This makes (future) top-level .html files build correctly, and doesn't
break existing .html files that live in subdirs.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
Merge remote-tracking branch 'origin/2.6' into 2.7
fixup docs build

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
docs: clean up Getting Started guide

This commit removes the second title of the document (one title is good
enough), and removes some useless comments and whitespace.

The second title ("Getting Started") showed up as a superfluous top-level
grouping in the pdf index.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
docs: use "translated" pncconf document for the spanish Getting Started

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
sim_pin: better default for bit types

Signed-off-by: Dewey Garrett <dgarrett@panix.com>
components -add (sim) parport and sim_axis_hardware components

These are for making simulated configs with stepconf.
The parport component is a passthrough that stands in for the realtme parport component.
sim_axis_hardware creates limit and homing switches based from current joint position and
info plugged into it (expected to come from the INI file)

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
stepconf -use new components to make a simulated config.

One can build an arbitrary sized simulated machine.
one can test stepconf's configs on a non realtime computer.

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
stepconf -use a preference file

make stepconf remember last config name, link, shortcut,
and sim hardware options for next time started.

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
replace parport component with sim_parport

better descriptive name
adjust stepconf to use new name

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
remove parport component

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
sim_axis_hardware -remove home-all selection pins, add docs

with apropriate defaults, home-all selection is not required,
the unused axes will not trip home-all because the position stays at zero.

docs are probably helpful...

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>
stepconf -dont make sim configs as default

surely would confuse people

Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
stepconf -fix HAL error when spindle with no encoder picked

add check for encoder before adding HAL 'addf" commands for simulated
 encoder
having addf commands with no loadrt sim_encoder commands caused the error

Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
stepconf -use linux port enumeration number as default

shouldnt have to use an actually address now

Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
stepconf -hide the help button

We currently don't have help pages.

Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
stepconf -update docs and images

Signed-off-by: chris morley <chrisinnanaimo@hotmail.com>
Merge branch '2.7'

Conflicts:
	src/emc/usr_intf/stepconf/build_HAL.py
	src/emc/usr_intf/stepconf/stepconf.py
docs -fix error building PDF for stepconf

doesn't like the # sign in the links/title apparently

Signed-off-by: Chris Morley <chrisinnanaimo@hotmail.com>