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

Configure an automated build into HTML #3

Closed
terales opened this issue Jan 16, 2018 · 13 comments
Closed

Configure an automated build into HTML #3

terales opened this issue Jan 16, 2018 · 13 comments

Comments

@terales
Copy link
Contributor

terales commented Jan 16, 2018

It's rather complicated to check out the current version of DocBook.

I suggest to set up an automatic build into GitHub pages. So non-devs could quickly read the latest version.

What do you think about it?
If it's ok with you, I can prepare a PR, but it would require some guided configuration done by one of the repo collaborators.

@DavidFatDavidF
Copy link
Member

Hi @terales, this is in fact in making.
The only current DocBook draft is being published to our github.io pages in HTML and PDF preview versions. Our webpage content is in the docs folder. We didn't publicize that widely as it is yet very rudimentary..
So far we are using only preliminary, built-in oXygen transforms but Jano is working on modified stylesheets for HTML and PDF that will be tweaked and branded to our needs.
We will publish those stylesheets along with the template once ready..
If you want to use those to automate the build, you're most welcome..
However not sure if we can fully automate the build on GitHub side, because a Saxon licence would be needed to run that..

@terales
Copy link
Contributor Author

terales commented Jan 16, 2018

Oh, I see https://galaglobal.github.io/TAPICC/
Maybe it worse to add a link to README? Do you need a PR for this?


However not sure if we can fully automate the build on GitHub side because a Saxon license would be needed to run that

I'm basically thinking about integration with Travis CI: on each commit into the master branch, it would build it and, if build succeeds, commit it into gh-pages branch. GitHub would automatically redeploy assets from there.

It's okay to have any licensed tools because their keys could be stored in the secure environment variables at Travis CI.

I would be able to set up working configuration as an example, but eventually, you would have to create the same configuration from my instructions to keep project closed.

@DavidFatDavidF
Copy link
Member

Alexander, I hear from Jano that ur active in WG4, meaning uv the legal signed.. I will ask Laura to give you write access, so that you can make the Travis integration. In fact we added Travis a while ago but no one had time to play with it ;-)
Your help here would be most welcome..
I would wait with publicizing the github.io webpage for a bit.. But you can start playing with the automated Travis build right away..
Cheers and thanks dF

@laurabrandon
Copy link
Contributor

Hi All -- I just sent an invitation to @terales for write access.

Thanks,
Laura

@JanHusarcik
Copy link
Collaborator

Hi @terales

if that's OK with you, I'll assign this item to you. Re the output:

  • to create HTML we need a XSLT processor, I think we can use a free version of Saxon
  • for PDF we need FO Processor, which is opensource, so there should be no problem with it

Jan

@terales
Copy link
Contributor Author

terales commented Jan 22, 2018

Sure, thanks!

@terales
Copy link
Contributor Author

terales commented Jan 25, 2018

Blocked by #5

@DavidFatDavidF
Copy link
Member

@terales where did you get your xslt used for the build? The error message seemed to be that the xslt wasn't one.. I can commit the current oXygen transforms I am using to build and that store the outputs into my local doc folder..

@terales
Copy link
Contributor Author

terales commented Jan 25, 2018

where did you get your xslt used for the build?

I believe that all required files, except binaries and files, included from third-party dependencies, should be in the repository.

With this idea in mind I was trying to use /docbook/T1/WG3/XLIFF-EM-BP.xml_xslt file as in the example command from suggested DocBook README:

java -jar saxon9pe.jar -xsl:./docbook/T1/WG3/XLIFF-EM-BP.xml_xslt -s:./docbook/T1/WG3/ -o:./docs/

I'm surprised a bit that you've merged draft of the README without addressing questions from PR #6. Sorry for not being clear. Let me explain what I was expecting based on my experience on open source software projects.

My initial idea was like this:

  1. I create a draft of DocBook building instructions (WIP prefix at PR mean work in progress, do not merge).
  2. Someone who can build the DocBook comes and either answer my questions in comments so I would update instruction or commit fixed instruction by himself.
  3. I would follow the instruction and verify that it could be reproduced from the clean machine by a person who just follows the instruction.
  4. If there are any troubles I'll ask for clarifications or missing files there.
  5. I remove the WIP suffix and ask to verify the instruction inside this PR.
  6. After positive feedback, I or someone else will merge it into the master branch.

Now I see that your approach is different. Can you share your plan, please?

@DavidFatDavidF
Copy link
Member

You are right, I shouldn't have merged #6
It seemed to me on cursory reading that the #6 6 was already resolved..
Is there a way to reopen #5 and #6?

@terales
Copy link
Contributor Author

terales commented Jan 25, 2018

Let me revert the merge and open a new PR

@terales
Copy link
Contributor Author

terales commented Jan 25, 2018

Done: #7

@terales
Copy link
Contributor Author

terales commented Jan 1, 2020

I wasn't able to replicate settings from paid publishing software within scripting open-source environment.

@terales terales closed this as completed Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants