This feature allows a file named abc to be published in new url/local such as hf.co/docs/library/xyz rather than hf.co/docs/library/abc. The toctree should look like this:
title: Chapter Abc
local: abc
newlocal: xyz # this is the new field this PR is using
In most cases, if you can, you should just rename the file abc to xyz rather than using newlocal inside toctree
This feature allows a file named
abc
to be published in new url/local such ashf.co/docs/library/xyz
rather thanhf.co/docs/library/abc
. The toctree should look like this:In most cases, if you can, you should just rename the file
abc
toxyz
rather than usingnewlocal
inside toctree