Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Really helpful documentation needs updating #12

Open
aezarebski opened this issue Sep 27, 2022 · 6 comments
Open

Really helpful documentation needs updating #12

aezarebski opened this issue Sep 27, 2022 · 6 comments

Comments

@aezarebski
Copy link
Contributor

<TITLE>BEAST v2.6.5 Documentation</TITLE>

I find these pages very useful for editing the XML.
Is there a way to update them to the latest version?

Are these automatically generated?
And if so, how is this done?
I'm interested in generating similar pages for the packages.

@rbouckaert
Copy link
Member

The documentation is automatically generated using DocMaker, which is part of BEAST. To generate documentation for BEAST v2.6, run

java -cp /path/to/beast/lib/beast.jar beast.app.DocMaker /output/dir

where /path/to/beast the path to where you have BEAST installed, and /output/dir the directory to where html files should go. An index.html file is generated in /output/dir that contains a page similar to the one you linked to.

It generates pages for all packages you have installed as well.

@rbouckaert
Copy link
Member

With BEAST v2.7.1 (soon to be released), DocMaker is an app that can be launched with the AppLauncher that comes with BEAST, or via the command line using

/path/to/beast/bin/applauncher DocMaker /output/dir

where /path/to/beast the path to where you have BEAST installed, and /output/dir the directory to where html files should go.

@aezarebski
Copy link
Contributor Author

Thank you! This is great.

I was able to generate the 2.6.6 documentation, but I can't find the documentation for the other packages installed (having the MASTER docs would be particularly helpful.) Is there some extra command line magic I need to use? It seems to recognise that there are packages there, it's logging Loading package MASTER v6.1.2.

@rbouckaert
Copy link
Member

DocMaker in v2.6 only documents classes in the beast and snap namespace, due to this line, so it was a bit misleading to state all installed packages will be documented, since only a subset of classes are considered.

If you change

m_beastObjectNames = PackageManager.find(beast.core.BEASTObject.class, PackageManager.IMPLEMENTATION_DIR);

to

m_beastObjectNames = PackageManager.find(beast.core.BEASTObject.class, new String[]{"beast", "master"});

in the v2.6 (not the master) branch, it should pick up classes in the master namespace as well. DocMaker v2.7.1 does not look at name spaces, but will produce documentation for any class declared as a BEASTInterface service in the version.xml file that comes with packages.

@aezarebski
Copy link
Contributor Author

Thanks. Frustratingly, I haven't been able to compile 2.6 versions recently (possibly due to recently upgrading java???) so can't really tinker with that at the moment. I'll wait for v2.7.1 and come back to this then.

@rbouckaert
Copy link
Member

v2.6 should compile without problems with JDK 8. It should be possible to have multiple JDKs installed, and switch between them -- details are different for different operating systems, so search for details for your OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants