-
Notifications
You must be signed in to change notification settings - Fork 4
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
Version # needs parameterized in build process #25
Comments
Based on some experimentation today, it seems like there's basically 3 diff things we need to worry about here, to solve both this issue and issue #26 ...
I'll dig into this more tomorow... |
It's not clear if you know this already, but the liquid templates can pull from To automate this, is it possible to just have something in Ant or in a script that's run that finds out the version from wherever it's stored in the Solr tree for the dist and package builds and updates _config.yml and build.xml for docs? |
I did not realize that -- that simplifies things greatly (i knew about
yup, yup ... that's basically what i've got locally - a I'll simplify that to just work with a |
we can now substitute ant properties for the solr/lucene version & javadoc urls in: - adoc files - when generating pdf - when generating jekyll html - liquid templates when generating jekyll html
cassandra pointed out that we don't need a _data/adoc-attributes.yml.template file, _config.yml variables can be used as site.foo variables in our templates. So this change removes _data/adoc-attributes.yml.template and puts the asciidoctor config back into a _config.yml.template instead. This involves less magic and makes it easier to find all the jekyll config options. Unfortuntately there seems to be a bug/oddity in how the asciidoctor jekyll plugin is initializatin itself, so we can't just use variables like site.asciidoctor.attributes.foo in our templates, we have to redundently declare "foo" again in the _config.yml: asciidoctor/jekyll-asciidoc#137
We need to ensure that anywhere in the ref guide that refers to the version# gets it's info from a variable defined at build time via an ant property.
In some cases this should be easy using asciidoctor run time attributes, which IIUC can be used in pages as if variables, but other places like layout or theme based yaml/json config files may be trickier.
The text was updated successfully, but these errors were encountered: