Skip to content

Commit

Permalink
Merge pull request #97 from jdillard/master
Browse files Browse the repository at this point in the history
Add warning about local web server for #95
  • Loading branch information
humitos committed Jul 23, 2020
2 parents c11adb3 + f0388ca commit 608c6ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ You may want to set ``notfound_no_urls_prefix`` to ``True`` and then add ``perma

.. _YAML front matter: http://jekyllrb.com/docs/frontmatter/

Why is my local web server not showing a 404.html?
--------------------------------------------------

Simple web servers, such as ``http.server``, don't have a default handler for 404
codes, so it doesn't know to point to the generated ``404.html``.

To see an example of adding a custom request handler for 404 codes, see:
https://stackoverflow.com/questions/22467908/python-simplehttpserver-404-page


The answer I'm looking for is not here
--------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ you can build your documentation again and you will see a new file called ``404.

Do not worry too much about this, this is the expected behavior and those resources will appear once the docs are deployed.

If you can't see the 404.html file using a local simple web server, it is
most likely because they often don't support requests for 404 codes. Refer to
the :doc:`faq` for more information.

.. note::

Expand Down

0 comments on commit 608c6ff

Please sign in to comment.