2

I have created documentation for my project using sphinx. the current endpoint for my documentation is /. My question is, how can i make my documentation follow a docs/<filename> pattern?

EX. <app.url>/docs/index.html

in my project's config.py i have:

DOCS_DIRECTORY = '/docs/'
bad_coder
  • 11,289
  • 20
  • 44
  • 72
juan_code18
  • 233
  • 6
  • 15

2 Answers2

0

Add this line in conf.py

html_baseurl = '/docs/'

ref: sphinx doc

Yue JIN
  • 1,047
  • 1
  • 10
  • 20
-1

you should call sphinx-build -b html sourcedir builddir. See the Sphinx doc, page First Steps with Sphinx

Humbalan
  • 677
  • 3
  • 14