insightsengineering / r-pkgdown-multiversion

Github Action to generate multiple versions of pkgdown docs for R packages
https://github.com/marketplace/actions/r-pkgdown-multi-version-docs
Apache License 2.0
4 stars 0 forks source link

[Feature Request]: Add a custom sorting feature to the dropdown list #7

Closed cicdguy closed 2 years ago

cicdguy commented 2 years ago

Feature description

A user of this action should be able to specify a custom sorting order for the items from the dropdown list.

Code of Conduct

Contribution Guidelines

Security Policy

walkowif commented 2 years ago

Currently versions in r-pkgdown-multiversion action are sorted in the following way:

So now it would be useful to know what these custom sorting orders to implement could be.

cicdguy commented 2 years ago

The requested order is as follows:

I want devel to show up first, then pre-release to show up second, and main to show up third, followed by all semantic versions. The order of devel, pre-release and main is something that me, as a user, would indicate (somehow).

cicdguy commented 2 years ago

Closing as this was implemented in #9