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

Move plugin documentation to gh-pages #102

Closed
aalmiray opened this issue Aug 19, 2014 · 12 comments
Closed

Move plugin documentation to gh-pages #102

aalmiray opened this issue Aug 19, 2014 · 12 comments
Labels
2.x Issue related to the 2.x series documentation task
Milestone

Comments

@aalmiray
Copy link
Member

As hinted in #98

@mojavelinux
Copy link
Member

Here's some research we did on reworking the documentation pipeline so that it also integrates with the asciidoctor.org website. There's a lot of work to be done to make it happen, but every journey begins with a small step.

asciidoctor/asciidoctor-documentation-planning#7

@aalmiray aalmiray added this to the 1.5.1 milestone Aug 20, 2014
@aalmiray aalmiray added the task label Aug 20, 2014
@mojavelinux
Copy link
Member

I'd like to have this hosted under the main asciidoctor.org site. There will be two locations for each project. For this project, those locations are:

  • /docs/asciidoctor-gradle-plugin (and perhaps an alias, /docs/gradle-plugin)
  • /projects/asciidoctor-gradle-plugin (and perhaps an alias, /projects/gradle-plugin)

The first is for the docs, obviously. The second is part of a dashboard similar to code.facebook.com/projects and engineering.twitter.com/opensource/projects.

@mojavelinux mojavelinux modified the milestones: 1.5.3, 1.5.1 Dec 4, 2014
@aalmiray aalmiray modified the milestones: 1.5.3, 1.6.0 Nov 12, 2015
@ysb33r
Copy link
Member

ysb33r commented Jul 1, 2018

I am kickstarting this. With 2.0 the documentation is getting so vast that we cannot effetcively use a single README anymore. So @mojavelinux we are going to need your input in how we can build asciidoctor-gradle docuemtnation and then push it it to the main Asciidoctor site as part of the build.

@ysb33r ysb33r modified the milestones: 1.6.0, 2.0.0 Jul 1, 2018
@ysb33r ysb33r added documentation 2.x Issue related to the 2.x series labels Jul 1, 2018
@ysb33r ysb33r modified the milestone: 2.0.0 Jul 1, 2018
@mojavelinux
Copy link
Member

The Asciidoctor documentation is moving to Antora. That means all you need to do is set up an Antora component structure in this repository and Antora will be able to consume it. It's probably best to look at what Asciidoctor.js is doing to learn how to get that set up.

https://github.com/asciidoctor/asciidoctor.js/tree/master/docs

@ysb33r
Copy link
Member

ysb33r commented Nov 8, 2018

@mojavelinux What I think at this point is to create a docs folder which will be the source for the docs. But for the build, I think two things should happen:

  • Build locally, so that the docs can be viewed easily
  • Copy (& commit) docs and appropriate source to a detached/orphaned branch in github, which can then be accessed via Antorra.

FInally, do we want to keep copies of docs for past releases or only for the latest release?

@ysb33r ysb33r mentioned this issue Nov 8, 2018
28 tasks
@mojavelinux
Copy link
Member

I would not recommend using a generated file structure. The docs should just live in a folder just like any other source files. Antora will then accesses them where they live. We don't want to over-complicate this.

You can still build the files locally with or without Antora. The pages are just regular AsciiDoc files. The only thing you might need to build them without Antora is an extension to handle Antora's xrefs. But that's something we'll want to start thinking about for the Gradle plugin anyway.

There's also the possibility of using Antora directly from Gradle to build the files locally. You could have the Gradle build generate a playbook file dynamically for the current branch, then feed it to Antora. I'd certainly encourage experimentation in this area. (You can find an Antora plugin for Gradle under developmpent here: https://github.com/rwinch/antora-gradle-plugin).

do we want to keep copies of docs for past releases or only for the latest release?

Just leave the docs in the git reference that corresponds to the software release (whether that's a branch or a tag). Then we can decide which docs to include in the site.

The model Asciidoctor core is going to use is to have any version (down to the minor version level) that is still supported. Once the version becomes unsupported, the docs will stop being published (but still available in the source repo).

@ysb33r
Copy link
Member

ysb33r commented Nov 9, 2018

I would not recommend using a generated file structure. The docs should just live in a folder just like any other source files. Antora will then accesses them where they live. We don't want to over-complicate this.

@mojavelinux The issue that I see is code snippets that are extracted (using tag::foo[]) for real code. If Antorra pulls the repo remotely, how does this work?

@mojavelinux
Copy link
Member

Antora will be able to aggregate code from outside an Antora structure (see https://gitlab.com/antora/antora/issues/195). It just doesn't yet. But we shouldn't put our efforts in workarounds. Instead, we should plan for the capability being there. This gives us an opportunity to study a real world scenario.

@ysb33r
Copy link
Member

ysb33r commented Nov 9, 2018

But we shouldn't put our efforts in workarounds. Instead, we should plan for the capability being there. This gives us an opportunity to study a real world scenario.

Challenge accepted.

Let's do this.

@ysb33r
Copy link
Member

ysb33r commented Nov 21, 2018

@mojavelinux Any chance you can create PR which just lays out the appriopriate Antorra structure in docs subfolder?

I shouldd be able to take it from there.

@mojavelinux
Copy link
Member

I've got some time this weekend that I can dedicated to getting you started.

ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Nov 29, 2018
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Dec 1, 2018
- Full PDF example added to compatibility tests
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Dec 1, 2018
- Full PDF example added to compatibility tests
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Dec 1, 2018
- Full PDF example added to compatibility tests
@ysb33r ysb33r removed this from the 2.0.0 milestone Mar 22, 2019
@ysb33r ysb33r added this to the 2.1.0 milestone Mar 22, 2019
@ysb33r ysb33r modified the milestones: 2.1.0, 2.2.0 Apr 11, 2019
@ysb33r ysb33r modified the milestones: 2.2.0, 3.0.0 May 4, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit that referenced this issue Jul 1, 2019
Create infrastructure for documentation (#102,#303)
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
@ysb33r ysb33r modified the milestones: 3.0.0, 2.3.0 Jul 1, 2019
@ysb33r
Copy link
Member

ysb33r commented Jul 1, 2019

Collapsing this work in #303 because there is a huge overlap and I would like SNAPSHOT docs to be pushed to gh-pages so that reviews can take place before final release to the new Antora-based website. Also because we still have some delays on the latter, this could serve a s a temporary documentation website.

@ysb33r ysb33r closed this as completed Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 1, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 3, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jul 3, 2019
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 18, 2020
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 18, 2020
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 19, 2020
ysb33r added a commit to ysb33r/asciidoctor-gradle-plugin that referenced this issue Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issue related to the 2.x series documentation task
Projects
None yet
Development

No branches or pull requests

3 participants