Giter Club home page Giter Club logo

Comments (6)

Simn avatar Simn commented on May 29, 2024

-r should be set to the base path of the links. If you are planning to host your documentation on http://yourserver.com/kraut, then you should invoke dox with -r /kraut.

from dox.

NobbZ avatar NobbZ commented on May 29, 2024

You should probably make that more clear… I have read it as the input-xml from one of the announcement posts in haxe list.

from dox.

Simn avatar Simn commented on May 29, 2024

I don't disagree, but it seems hard to explain this in only a few words so we could add it to the command line help... I guess we could add one or two example usages to the command line.

from dox.

NobbZ avatar NobbZ commented on May 29, 2024

Just move it to the end of the list and assume . if ommited?

haxedoc is happy with input.xml and output dir, why do you need such a complicated parameterset for dox?

why not just run hlr dox input.xml output/path, creating absolute URLs in the filesystem? Only with -r provided use absolute to webroot with -r value as basepath?

from dox.

dpeek avatar dpeek commented on May 29, 2024

The reason for the base path is that every page in the tree needs to load assets (CSS, JS, images) from the root.

Haxedoc doesn't need this as every page is self contained.

We could calculate the relative path to the root for every page, but there quite a few places it gets used (including index.js). Another generated var in a script tag maybe?

On 19/06/2013, at 8:07 AM, "Norbert Melzer" <[email protected]mailto:[email protected]> wrote:

Just move it to the end of the list and assume . if ommited?

haxedoc is happy with input.xml and output dir, why do you need such a complicated parameterset for dox?

why not just run hlr dox input.xml output/path, creating absolute URLs in the filesystem? Only with -r provided use absolute to webroot with -r value as basepath?


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-19646008.

from dox.

Simn avatar Simn commented on May 29, 2024

I think the problem here is that we do not derive the -r path from the -o path if only the latter is provided. We set some default values here:
https://github.com/dpeek/dox/blob/master/src/dox/Dox.hx#L19

And then overwrite them as provided by command line. It might be better to start without any initialization, read the command line and then fill in the defaults if they are not set. This would allow to set defaults depending on set values.

from dox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.