mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-15 14:41:26 +00:00
# Changes - Added [redocusaurus](https://github.com/rohit-gohri/redocusaurus) package to display swagger api with reference to [woodpecker](https://github.com/woodpecker-ci/woodpecker/tree/master/docs) - Change `sed` for swagger.json for proper version and baseurl. - Add a dropdown for different api versions. (screenshot below) - On API pages, only API version dropdown will show(hide locale dropdown, version dropdown for doc, and doc search) - Allow build CSR API pages for development so it saves building time. # Screenshots     Search:  Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/32 Co-authored-by: HesterG <hestergong@gmail.com> Co-committed-by: HesterG <hestergong@gmail.com>
18 lines
471 B
JavaScript
18 lines
471 B
JavaScript
import React from 'react';
|
|
import Translate from '@docusaurus/Translate';
|
|
|
|
export default function Outdated(props) {
|
|
return (
|
|
<div className='outdated-text'>
|
|
<Translate id="outdated.message">
|
|
The content of current version is not up to date, please check latest English version, or
|
|
</Translate>
|
|
<a href={props.editUrl}>
|
|
<Translate id="outdated.help">
|
|
Help us to translate
|
|
</Translate>
|
|
</a>
|
|
</div>
|
|
)
|
|
}
|