Closed davifantasia closed 4 years ago
Thanks for looking into that.
I have a question first: do we expect "generating the raml specs" to be done by developers or by writers? From what I understand, it's something that developers would do.
So what you're proposing is to have a single script that ties all the things together? Or did I misunderstood something?
I have a question first: do we expect "generating the raml specs" to be done by developers or by writers? From what I understand, it's something that developers would do.
Developers should be responsible for that yes, but I'm working with the presumption that anyone who is not a developer should be able to set up a website for documentation using gatsby-theme-api-docs
.
So what you're proposing is to have a single script that ties all the things together? Or did I misunderstood something?
That is correct.
I'm working with the presumption that anyone who is not a developer should be able to set up a website for documentation using
gatsby-theme-api-docs
Is this what we want to achieve?
Is this what we want to achieve?
I believe so.
I have a question first: do we expect "generating the raml specs" to be done by developers or by writers? From what I understand, it's something that developers would do.
Developers should be responsible for that yes, but I'm working with the presumption that anyone who is not a developer should be able to set up a website for documentation using
gatsby-theme-api-docs
.
@nkuehn is this correct?
Hi, a few clarifications:
Does that help?
My idea of a "rollout" to make it easier to use:
How about we use a github action or something to do the work? That way, nobody has to install anything, we just need to "trigger" the action to run, which will then create a PR with the changes.
The trigger can be different things, and is up to us to find a good one. Some examples:
CI doesn't solve the use case at all unfortunately because RAML changes are a part of the writing "flow" and you need relatively direct feedback in the resulting site. E.g. you want to move a piece of description from a RAML field description to the general text or vice versa. Or you put some nontrivial markdown into a RAML description and need feedback whether it works and looks the way you want.
Via CI the feedback cycle is way too long. In fact, even having to call the converter script now is an ugly regression from the live preview when authoring RAML that we had when we used the old JS parser. Mid-term I rather want to get back to a mode the dynamically listens to RAML changes and updates the dev mode site live than to further decouple it by switching to CI.
An alternative is to bundle the script in a docker container, so people only need to have Docker installed.
I'm just trying to find a way to avoid people having to install "unnecessary" tools.
It's the key tool for the API spec documentation work and hence pretty "necessary". Software does not become "unnecessary" by not being preinstalled on an Apple product and/or being my favorite tech stack.
We tried pushing docker in the existing website stack and it turned out to be much harder to use and and understand than installing ruby via homebrew and simply running the generator. If you don't run docker anyways for your work having it in the background is a horribly resource hog and the daemon takes ages to start up. Most users went back to running it locally.
Current Process
./gradlew shadow
to generate jar file.Problem
Given that the bulk of intended users don't have software development background, the process can get easily complicated and therefore confusing. Setting up the actual doc site already has several steps.
Proposed Automated Process
Possible Development Steps to Automation