Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,571 for Docs (0.02 seconds)

  1. docs/zh-hant/docs/how-to/custom-docs-ui-assets.md

    現在,為了測試一切是否正常,建立一個路徑操作:
    
    {* ../../docs_src/custom_docs_ui/tutorial001_py310.py hl[36:38] *}
    
    ### 測試 { #test-it }
    
    現在你應該能造訪 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs),重新載入頁面後,資源會從新的 CDN 載入。
    
    ## 自行託管文件所需的 JavaScript 與 CSS { #self-hosting-javascript-and-css-for-docs }
    
    若你需要應用在離線、無公共網路或僅在區域網路中也能運作,自行託管 JavaScript 與 CSS 會很實用。
    
    以下示範如何在同一個 FastAPI 應用中自行提供這些檔案,並設定文件使用它們。
    
    ### 專案檔案結構 { #project-file-structure }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  2. docs/zh/docs/how-to/custom-docs-ui-assets.md

    现在,为了测试一切是否正常,创建一个*路径操作*:
    
    {* ../../docs_src/custom_docs_ui/tutorial001_py310.py hl[36:38] *}
    
    ### 测试 { #test-it }
    
    现在,你应该可以访问 [http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs),并刷新页面,页面会从新的 CDN 加载这些资源。
    
    ## 为文档自托管 JavaScript 和 CSS { #self-hosting-javascript-and-css-for-docs }
    
    如果你需要在离线、无法访问互联网或仅在局域网内时,应用仍能工作,那么自托管 JavaScript 和 CSS 会很有用。
    
    这里你将看到如何在同一个 FastAPI 应用中自行提供这些文件,并配置文档使用它们。
    
    ### 项目文件结构 { #project-file-structure }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  3. docs/ja/docs/how-to/custom-docs-ui-assets.md

    {* ../../docs_src/custom_docs_ui/tutorial001_py310.py hl[36:38] *}
    
    ### テスト { #test-it }
    
    これで、[http://127.0.0.1:8000/docs](http://127.0.0.1:8000/docs) にアクセスしてページを再読み込みすると、新しい CDN からそれらのアセットが読み込まれるはずです。
    
    ## ドキュメント用 JavaScript と CSS のセルフホスティング { #self-hosting-javascript-and-css-for-docs }
    
    オフライン(インターネット非接続)でも、あるいはローカルネットワークで、アプリを動作させたい場合などには、JavaScript と CSS をセルフホストするのが有用です。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  4. docs/en/docs/how-to/custom-docs-ui-assets.md

    ### Disable the automatic docs { #disable-the-automatic-docs }
    
    The first step is to disable the automatic docs, as by default, those use the default CDN.
    
    To disable them, set their URLs to `None` when creating your `FastAPI` app:
    
    {* ../../docs_src/custom_docs_ui/tutorial001_py310.py hl[8] *}
    
    ### Include the custom docs { #include-the-custom-docs }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  5. .ci/jobs.t/elastic+elasticsearch+pull-request+docs-check.yml

    ---
    - job:
        name: "elastic+elasticsearch+pull-request+docs-check"
        display-name: "elastic / elasticsearch - pull request docs-check"
        description: "Testing of Elasticsearch pull requests - docs-check"
        workspace: "/dev/shm/elastic+elasticsearch+pull-request+docs-check"
        scm:
          - git:
              refspec: "+refs/pull/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*"
              branches:
                - "${ghprbActualCommit}"
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jul 01 20:27:05 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  6. fastapi/openapi/docs.py

        Read more about it in the
        [FastAPI docs for Configure Swagger UI](https://fastapi.tiangolo.com/how-to/configure-swagger-ui/)
        and the [FastAPI docs for Custom Docs UI Static Assets (Self-Hosting)](https://fastapi.tiangolo.com/how-to/custom-docs-ui-assets/).
        """
        current_swagger_ui_parameters = swagger_ui_default_parameters.copy()
        if swagger_ui_parameters:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 24 09:28:10 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  7. scripts/docs.py

    missing_translation_snippet = """
    {!../../docs/missing-translation.md!}
    """
    
    non_translated_sections = (
        f"reference{os.sep}",
        "release-notes.md",
        "fastapi-people.md",
        "external-links.md",
        "newsletter.md",
        "management-tasks.md",
        "management.md",
        "contributing.md",
    )
    
    docs_path = Path("docs")
    en_docs_path = Path("docs/en")
    en_config_path: Path = en_docs_path / mkdocs_name
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  8. .github/workflows/docs.yml

            with:
              python-version: 3.x
    
          - run: pip install mkdocs-material mkdocs-redirects
    
          - name: Generate Docs
            run: ./test_docs.sh
    
          - uses: actions/upload-artifact@v7
            with:
              name: docs
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 26 22:11:04 GMT 2026
    - 990 bytes
    - Click Count (0)
  9. docs/en/docs/reference/openapi/docs.md

    # OpenAPI `docs`
    
    Utilities to handle OpenAPI automatic UI documentation, including Swagger UI (by default at `/docs`) and ReDoc (by default at `/redoc`).
    
    ::: fastapi.openapi.docs.get_swagger_ui_html
    
    ::: fastapi.openapi.docs.get_redoc_html
    
    ::: fastapi.openapi.docs.get_swagger_ui_oauth2_redirect_html
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 360 bytes
    - Click Count (0)
  10. .github/workflows/build-docs.yml

                uv.lock
          - name: Install docs extras
            run: uv sync --locked --no-dev --group docs
          - name: Export Language Codes
            id: show-langs
            run: |
              echo "langs=$(uv run ./scripts/docs.py langs-json)" >> $GITHUB_OUTPUT
    
      build-docs:
        needs:
          - changes
          - langs
        if: ${{ needs.changes.outputs.docs == 'true' }}
        runs-on: ubuntu-latest
        strategy:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 14 15:01:34 GMT 2026
    - 3.3K bytes
    - Click Count (0)
Back to Top