Use mkdocs-material for documentation#178
Conversation
|
@SMILEY4 This is the PR for the documentation pages without the autogenerated API reference If I were to make a list of the remaining tasks, it would be
|
How to run and preview the docs locallyRequirementsStepsSetting up environment
Previewing the docsmkdocs serveAutogenerated API ReferenceTo generate the API Reference, run ./gradlew dokkaJekyllAnd run the command to preview the docs if it is not already running For more information, see mkdocs-material Possible future developmentIt is possible to use the gradle-mkdocs-plugin to manage the dependencies and environment as shown above, possibly reducing all the above discussed to something along the lines of ./gradlew mkdocsServeor similar. We need to analyse the opportunity cost and make a decision |
|
Thank you! I checked it out and it looks awesome already 👍 I did a quick test with dokka and tested the html output ( What do you think?
I think it would be great if we can get this to work, though I haven't quite understood yet how mike would work with our multiple step build process, i.e. dokka + mkdocs and publishing. I would probably need to do some more experiments myself.
Assuming that the gradle task can do everything we need that would probably be the simplest solution. I doupt however that this would support our requirements with dokka, mkdocs and possibly mike. I dont think the python workflow is too complicated and probably allows for more flexibility for now. Just let me know if you want to merge this branch and work with new ones or if you want to keep it open for a bit longer. |
Thank you 😄
It does look nicer that way. And more "standard" for an API reference. How does it integrate with the rest of the Markdown files? I have to try it locally, I suppose.
Alright. I will try to get it to work.
Basically, it would publish new versions into a subdirectory, and mike will allow switching versions when browsing the docs. I think maybe after I am done with that, you will understand it better
I took another look at the plugin. Although the documentation is a bit lacking, it looks like it would allow us to do what we want to do by overriding certain things. I will give it a shot, and see what comes of that
I wanted to decide on the Python vs Gradle plugin before merging. I will try and get the latter to work, but if it is proving challenging, we can go ahead and merge and maybe come back to it later Also, maybe after this is all done, we can do something similar for the awesome kenerator 😉 |
|
@SMILEY4 We can merge this. I will get the gradle plugin in before the final release of v5 Edit: Wait. I got the gradle plugin to work |
|
Now the process is more like ./gradlew dokkaHtml
./gradlew mkdocsServeI suppose what is left is adding CI/CD. But go ahead and try, and if the steps above work flawlessly, we can merge. I already have a sample workflow file |
| private fun Application.myModule() { | ||
|
|
||
| // Install the "SwaggerUI"-Plugin and use the default configuration | ||
| // Install the Op lugin and use the default configuration |
There was a problem hiding this comment.
| // Install the Op lugin and use the default configuration | |
| // Install the OpenApi Plugin and use the default configuration |
|
Hi. Did some testing regarding publishing the page. and it works 🥳 (almost) : two issues i found:
I'm also adding some additional notes to this pr as future todos so we don't forget. |
| # Ktor Swagger UI | ||
|
|
||
| [](https://search.maven.org/artifact/io.github.smiley4/ktor-swagger-ui) | ||
| [](https://github.com/SMILEY4/ktor-swagger-ui/actions/workflows/checks.yml) |
There was a problem hiding this comment.
There was a problem hiding this comment.
I looked into it. It seems to be the Checks - Passing badge.
But that also reminds me, now that we have three packages instead of one, we may need to add the others to Maven Central if we still want to keep that too.
Good idea
Excellent. I'm glad we at least made progress
Could you explain what you mean by normal environment variables?
The dropdown does not have
Another good idea. But it may be better to add it to #175 as that is still open. What do you think? |



Closes #175