You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules
wxiaoguang b39a5bbbd6
Make wiki title supports dashes and improve wiki name related features (#24143)
Close #7570


1. Clearly define the wiki path behaviors, see
`services/wiki/wiki_path.go` and tests
2. Keep compatibility with old contents
3. Allow to use dashes in titles, eg: "2000-01-02 Meeting record"
4. Add a "Pages" link in the dropdown, otherwise users can't go to the
Pages page easily.
5. Add a "View original git file" link in the Pages list, even if some
file names are broken, users still have a chance to edit or remove it,
without cloning the wiki repo to local.
6. Fix 500 error when the name contains prefix spaces.


This PR also introduces the ability to support sub-directories, but it
can't be done at the moment due to there are a lot of legacy wiki data,
which use "%2F" in file names.



![image](https://user-images.githubusercontent.com/2114189/232239004-3359d7b9-7bf3-4ff3-8446-bfb0e79645dd.png)


![image](https://user-images.githubusercontent.com/2114189/232239020-74b92c72-bf73-4377-a319-1c85609f82b1.png)

Co-authored-by: Giteabot <teabot@gitea.io>
2 years ago
..
actions Support triggering workflows by wiki related events (#24119) 2 years ago
activitypub Add Chef package registry (#22554) 2 years ago
analyze Implement FSFE REUSE for golang files (#21840) 2 years ago
assetfs Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
auth Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
avatar Use minio/sha256-simd for accelerated SHA256 (#23052) 2 years ago
base Use a general Eval function for expressions in templates. (#23927) 2 years ago
cache Update redis library to support redis v7 (#24114) 2 years ago
charset Refactor locale number (#24134) 2 years ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Allow adding new files to an empty repo (#24164) 2 years ago
csv Refactor locale number (#24134) 2 years ago
doctor Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
emoji Fix unstable emoji sort (#22346) 2 years ago
eventsource Move `convert` package to services (#22264) 2 years ago
generate Implement FSFE REUSE for golang files (#21840) 2 years ago
git Make wiki title supports dashes and improve wiki name related features (#24143) 2 years ago
gitgraph Add context cache as a request level cache (#22294) 2 years ago
graceful Implement FSFE REUSE for golang files (#21840) 2 years ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 2 years ago
highlight test_env: hardcode major go version in use (#23464) 2 years ago
hostmatcher Implement FSFE REUSE for golang files (#21840) 2 years ago
html Implement FSFE REUSE for golang files (#21840) 2 years ago
httpcache Set `X-Gitea-Debug` header once (#23361) 2 years ago
httplib Refactor internal API for git commands, use meaningful messages instead of "Internal Server Error" (#23687) 2 years ago
indexer Allow adding new files to an empty repo (#24164) 2 years ago
issue/template Allow issue templates to not render title (#22589) 2 years ago
json Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Make minio package support legacy MD5 checksum (#23768) 2 years ago
log Improve trace logging for pulls and processes (#22633) 2 years ago
markup Improve Wiki TOC (#24137) 2 years ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics include build info in Prometheus metrics (#22819) 2 years ago
migration Scoped labels (#22585) 2 years ago
mirror Implement FSFE REUSE for golang files (#21840) 2 years ago
nosql Update redis library to support redis v7 (#24114) 2 years ago
notification Implement actions (#21937) 2 years ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Display image size for multiarch container images (#23821) 2 years ago
paginator Update gitea-vet to check FSFE REUSE (#22004) 2 years ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Fix incorrect internal response type (#24173) 2 years ago
process Improve trace logging for pulls and processes (#22633) 2 years ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
queue Update redis library to support redis v7 (#24114) 2 years ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Use correct captured group range when parsing cross-reference (#22672) 2 years ago
regexplru Implement FSFE REUSE for golang files (#21840) 2 years ago
repository Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
secret Use minio/sha256-simd for accelerated SHA256 (#23052) 2 years ago
session Update redis library to support redis v7 (#24114) 2 years ago
setting Allow adding new files to an empty repo (#24164) 2 years ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Implement FSFE REUSE for golang files (#21840) 2 years ago
storage Make minio package support legacy MD5 checksum (#23768) 2 years ago
structs Fix Org edit page bugs: renaming detection, maxlength (#24161) 2 years ago
svg Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Implement FSFE REUSE for golang files (#21840) 2 years ago
templates Improve Wiki TOC (#24137) 2 years ago
test Refactor locale number (#24134) 2 years ago
timeutil Remove untranslatable `on_date` key (#24106) 2 years ago
translation Refactor locale number (#24134) 2 years ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Do not recognize text files as audio (#23355) 2 years ago
updatechecker Implement FSFE REUSE for golang files (#21840) 2 years ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
validation Map OIDC groups to Orgs/Teams (#21441) 2 years ago
web Refactor cookie (#24107) 2 years ago
webhook Restructure `webhook` module (#22256) 2 years ago