Laravel-apidoc-generator: Customize Documentation Template

Created on 28 Aug 2019  Â·  4Comments  Â·  Source: mpociot/laravel-apidoc-generator

Is there a way to customize documentation template without having to redo it every time you regenerate documentation?

I would like to add a class to the logo and style the look of the logo too but whenever I regenerate, it reverts back to normal.

Most helpful comment

It isn't easy to do this right now, but I'm working on some changes that
should make the discussion easier.

On Fri, Apr 3, 2020, 08:20 Nicholas Catanchin notifications@github.com
wrote:

Have a look in the generated docs, the CSS in use will be in the HTML -
style.css I believe - and somewhere in the public directory.

That being said, I have also tried to work out how to do this the proper
way, the documentarian links / anything that linked to Mr Pociot’s website

  • broken for a long time now.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/mpociot/laravel-apidoc-generator/issues/563#issuecomment-608273083,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADNSD4NPQZFZ7P6LLMLPUXTRKWE2RANCNFSM4IQ5JWUA
.

All 4 comments

This isn't currently supported, as that is handled by Documentarian. Documentarian allows you to customise the theme, but this package does not currently expose that. Contributions welcome.

First of all, thank you very much for the work done in this package. It is a great project.

I have read the previous answer, and I understand that there is no way yet to customize the theme.

But, could you point me out what files should I modify if I want to change the css ?

I don't mind doing it each time I regenerate the doc for now. I just would like to modify it.

I tried to modify resources/docs/source/assets/stylus/style.styl and then regenerate the doc with php artisan apidoc:generate --force, but it does not take into account my modifications.

Any help is welcome.

Have a look in the generated docs, the CSS in use will be in the HTML - style.css I believe - and somewhere in the public directory.

That being said, I have also tried to work out how to do this the proper way, the documentarian links / anything that linked to Mr Pociot’s website - broken for a long time now.

It isn't easy to do this right now, but I'm working on some changes that
should make the discussion easier.

On Fri, Apr 3, 2020, 08:20 Nicholas Catanchin notifications@github.com
wrote:

Have a look in the generated docs, the CSS in use will be in the HTML -
style.css I believe - and somewhere in the public directory.

That being said, I have also tried to work out how to do this the proper
way, the documentarian links / anything that linked to Mr Pociot’s website

  • broken for a long time now.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/mpociot/laravel-apidoc-generator/issues/563#issuecomment-608273083,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADNSD4NPQZFZ7P6LLMLPUXTRKWE2RANCNFSM4IQ5JWUA
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farizluqman picture farizluqman  Â·  4Comments

codehimanshu picture codehimanshu  Â·  9Comments

ashokTagtaste picture ashokTagtaste  Â·  8Comments

saidatom picture saidatom  Â·  7Comments

herpaderpaldent picture herpaderpaldent  Â·  7Comments