]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
doc/_static: match with branch encoded in pathname in URL
authorKefu Chai <kchai@redhat.com>
Fri, 20 Nov 2020 04:51:56 +0000 (12:51 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Nov 2020 04:59:22 +0000 (12:59 +0800)
commit0980cde33443e4bca1941509747e0ae838e8e444
tree1e7452b836385c745b47e5be256e395f547a24cb
parente5c949dbe9f55caf75ce6972421c838b03f130d8
doc/_static: match with branch encoded in pathname in URL

since we've migrated to RTD, a typical URL of ceph document looks like

https://docs.ceph.com/en/octopus/rados/

so instead of match "/docs.ceph.com/docs/<branch-name>/", we should
better match "/en/<branch-name>". in this change,

* do not include the domain name in the pattern to be matched,
  it's not necessary.
* match with "/en/<branch-name>/"

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/_static/js/ceph.js