|
| 1 | +# |
| 2 | +# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved. |
| 3 | +# This file is a part of the vllm-ascend project. |
| 4 | +# Adapted from vllm-project/vllm/docs/source/conf.py |
| 5 | +# Copyright 2023 The vLLM team. |
| 6 | +# |
| 7 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | +# you may not use this file except in compliance with the License. |
| 9 | +# You may obtain a copy of the License at |
| 10 | +# |
| 11 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +# |
| 13 | +# Unless required by applicable law or agreed to in writing, software |
| 14 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | +# See the License for the specific language governing permissions and |
| 17 | +# limitations under the License. |
| 18 | +# |
| 19 | + |
| 20 | +# -- Path setup -------------------------------------------------------------- |
| 21 | + |
| 22 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 23 | +# add these directories to sys.path here. If the directory is relative to the |
| 24 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 25 | +# |
| 26 | +# import os |
| 27 | +# import sys |
| 28 | +# sys.path.insert(0, os.path.abspath('.')) |
| 29 | + |
| 30 | +# -- Project information ----------------------------------------------------- |
| 31 | + |
| 32 | +project = 'vllm-ascend' |
| 33 | +copyright = '2025, vllm-ascend team' |
| 34 | +author = 'the vllm-ascend team' |
| 35 | + |
| 36 | +# The full version, including alpha/beta/rc tags |
| 37 | +release = '' |
| 38 | + |
| 39 | +# -- General configuration --------------------------------------------------- |
| 40 | + |
| 41 | +# Add any Sphinx extension module names here, as strings. They can be |
| 42 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 43 | +# ones. |
| 44 | + |
| 45 | +# Copy from https://github.com/vllm-project/vllm/blob/main/docs/source/conf.py |
| 46 | +extensions = [ |
| 47 | + "sphinx.ext.napoleon", |
| 48 | + "sphinx.ext.intersphinx", |
| 49 | + "sphinx_copybutton", |
| 50 | + "sphinx.ext.autodoc", |
| 51 | + "sphinx.ext.autosummary", |
| 52 | + "myst_parser", |
| 53 | + "sphinxarg.ext", |
| 54 | + "sphinx_design", |
| 55 | + "sphinx_togglebutton", |
| 56 | +] |
| 57 | +myst_enable_extensions = [ |
| 58 | + "colon_fence", |
| 59 | +] |
| 60 | + |
| 61 | +# Add any paths that contain templates here, relative to this directory. |
| 62 | +templates_path = ['_templates'] |
| 63 | + |
| 64 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 65 | +# for a list of supported languages. |
| 66 | +# |
| 67 | +# This is also used if you do content translation via gettext catalogs. |
| 68 | +# Usually you set "language" from the command line for these cases. |
| 69 | +language = 'en' |
| 70 | + |
| 71 | +# List of patterns, relative to source directory, that match files and |
| 72 | +# directories to ignore when looking for source files. |
| 73 | +# This pattern also affects html_static_path and html_extra_path. |
| 74 | +exclude_patterns = [ |
| 75 | + '_build', |
| 76 | + 'Thumbs.db', |
| 77 | + '.DS_Store', |
| 78 | + '.venv', |
| 79 | + 'README.md', |
| 80 | + # TODO(yikun): Remove this after zh supported |
| 81 | + 'developer_guide/contributing.zh.md' |
| 82 | +] |
| 83 | + |
| 84 | +# -- Options for HTML output ------------------------------------------------- |
| 85 | + |
| 86 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 87 | +# a list of builtin themes. |
| 88 | +# |
| 89 | +html_title = project |
| 90 | +html_theme = 'sphinx_book_theme' |
| 91 | +html_logo = 'logos/vllm-ascend-logo-text-light.png' |
| 92 | +html_theme_options = { |
| 93 | + 'path_to_docs': 'docs/source', |
| 94 | + 'repository_url': 'https://github.com/vllm-project/vllm-ascend', |
| 95 | + 'use_repository_button': True, |
| 96 | + 'use_edit_page_button': True, |
| 97 | +} |
| 98 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 99 | +# relative to this directory. They are copied after the builtin static files, |
| 100 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 101 | +# html_static_path = ['_static'] |
| 102 | + |
| 103 | + |
| 104 | +def setup(app): |
| 105 | + pass |
0 commit comments