|
24 | 24 | import os |
25 | 25 |
|
26 | 26 | # Define the canonical URL if you are using a custom domain on Read the Docs |
27 | | -html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") |
| 27 | +html_baseurl = os.environ.get( |
| 28 | + "READTHEDOCS_CANONICAL_URL", |
| 29 | + "https://sttp.softwaremill.com/en/latest/", |
| 30 | +) |
28 | 31 |
|
29 | 32 | # Tell Jinja2 templates the build is running on Read the Docs |
30 | 33 | if os.environ.get("READTHEDOCS", "") == "True": |
|
41 | 44 | # Add any Sphinx extension module names here, as strings. They can be |
42 | 45 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
43 | 46 | # ones. |
44 | | -extensions = ['myst_parser', 'sphinx_rtd_theme'] |
| 47 | +extensions = ['myst_parser', 'sphinx_rtd_theme', 'sphinx_llms_txt'] |
45 | 48 |
|
46 | 49 | myst_enable_extensions = ['attrs_block'] |
47 | 50 |
|
| 51 | +llms_txt_title = "sttp" |
| 52 | +llms_txt_summary = "The Scala HTTP client you always wanted!" |
| 53 | +llms_txt_full_file = True |
| 54 | + |
48 | 55 | # Add any paths that contain templates here, relative to this directory. |
49 | 56 | templates_path = ['_templates'] |
50 | 57 |
|
|
54 | 61 | # source_suffix = ['.rst', '.md'] |
55 | 62 | source_suffix = { |
56 | 63 | '.rst': 'restructuredtext', |
57 | | - '.txt': 'markdown', |
58 | 64 | '.md': 'markdown', |
59 | 65 | } |
60 | 66 |
|
|
85 | 91 | # List of patterns, relative to source directory, that match files and |
86 | 92 | # directories to ignore when looking for source files. |
87 | 93 | # This patterns also effect to html_static_path and html_extra_path |
88 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 94 | +exclude_patterns = [ |
| 95 | + '_build', 'Thumbs.db', '.DS_Store', |
| 96 | + '.venv', 'venv', 'env', |
| 97 | + '**/site-packages/**', |
| 98 | + '**/node_modules/**', |
| 99 | + '_templates', |
| 100 | + 'requirements.txt', |
| 101 | + 'includes/*', |
| 102 | +] |
89 | 103 |
|
90 | 104 | # The name of the Pygments (syntax highlighting) style to use. |
91 | 105 | pygments_style = 'default' |
|
0 commit comments