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

Add previous button #120

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Conversation

patricklaf
Copy link
Contributor

I like the next button defined in custom.css but I needed previous button.

This PR add previous button classes and also a section_buttons class to arrange buttons nicely when you have both previous and next buttons.

Setup

Add custom.css to the HTML_EXTRA_STYLESHEET of the Doxygen configuration file:

HTML_EXTRA_STYLESHEET  = doxygen-awesome.css custom.css

How to use?

Previous or next button

Add a span with the right class, previous_section_button or next_section_button:

<span class="previous_section_button">
Read Previous: [Firmware](firmware.md)
</span>

Previous and next buttons

If you want to have both buttons, just add an enclosing div with section_buttons class:

<div class="section_buttons">
<span class="previous_section_button">
Read Previous: [Hardware](hardware.md)
</span>
<span class="next_section_button">
Read Next: [Settings](settings.md)
</span>
</div>

Add previous button
@jothepro jothepro added the enhancement New feature or request label Jul 17, 2023
@jothepro
Copy link
Owner

Nice, thank you! I think I'll also add previous buttons to the demo. Pls be patient with this MR, I will come back to you asap!

@jothepro jothepro merged commit db7f670 into jothepro:main Nov 28, 2023
@patricklaf patricklaf deleted the patricklaf-previous_button branch December 1, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants