Comments (6)
-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.
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.
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.
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.
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.
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)
- Need skimmable index per class HOT 4
- Constraints not listed in documentation HOT 1
- Packages names sometimes required HOT 4
- [docs] link in sys.FileSystem documentation points to wrong page HOT 1
- [Feature Request] Search in content, not only package/class names
- Missing closing brace in topbar.mtt
- GitHub warns about "high severity" security concerns about JQuery 1.9.1 HOT 4
- Special characters not escaped correctly HOT 1
- Link generation: sys.io.* links to cs.system.* HOT 1
- Are module-level fields supported?
- sys.io.Process shows to cs.system.diagnostics.Process HOT 2
- Example in readme does not work HOT 1
- Replace neko with --interp ? HOT 4
- Ignore lib on xml generation? HOT 1
- [java] Expected attribute name HOT 1
- Abstract types: instance members are documented as static members. HOT 1
- Support documenting metadata HOT 6
- Problem call document generation.
- cant create documentation on github actions
- Comment tu dox qlq sur discord
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dox.