Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for site (0.28 sec)

  1. scripts/docs.py

            # removed or not.
        else:
            dist_path = site_path / lang
            shutil.rmtree(dist_path, ignore_errors=True)
        current_dir = os.getcwd()
        os.chdir(lang_path)
        shutil.rmtree(build_site_dist_path, ignore_errors=True)
        subprocess.run(["mkdocs", "build", "--site-dir", build_site_dist_path], check=True)
        shutil.copytree(build_site_dist_path, dist_path, dirs_exist_ok=True)
        os.chdir(current_dir)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  2. .github/workflows/deploy-docs.yml

          - name: Dump GitHub context
            env:
              GITHUB_CONTEXT: ${{ toJson(github) }}
            run: echo "$GITHUB_CONTEXT"
          - uses: actions/checkout@v4
          - name: Clean site
            run: |
              rm -rf ./site
              mkdir ./site
          - name: Download Artifact Docs
            id: download
            uses: dawidd6/action-download-artifact@v3.1.4
            with:
              if_no_artifact_found: ignore
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 19 01:33:28 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. docs/ja/docs/contributing.md

    * 設定ファイルの中で、`docs/features.md`が記述されている箇所を見つけます:
    
    ```YAML hl_lines="8"
    site_name: FastAPI
    # More stuff
    nav:
    - FastAPI: index.md
    - Languages:
      - en: /
      - es: /es/
    - features.md
    ```
    
    * 編集している言語のMkDocs構成ファイルを開きます。例えば:
    
    ```
    docs/es/docs/mkdocs.yml
    ```
    
    * 英語とまったく同じ場所に追加します。例えば:
    
    ```YAML hl_lines="8"
    site_name: FastAPI
    # More stuff
    nav:
    - FastAPI: index.md
    - Languages:
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 21:38:15 GMT 2023
    - 16.6K bytes
    - Viewed (0)
  4. docs/en/layouts/custom.yml

        {%- else -%}
          Roboto
        {%- endif -%}
    
      # Site name
      - &site_name >-
        {{ config.site_name }}
    
      # Page title
      - &page_title >-
        {{ page.meta.get("title", page.title) }}
    
      # Page title with site name
      - &page_title_with_site_name >-
        {%- if not page.is_homepage -%}
          {{ page.meta.get("title", page.title) }} - {{ config.site_name }}
        {%- else -%}
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jun 26 14:05:43 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  5. scripts/mkdocs_hooks.py

        dir_path = Path(config.docs_dir)
        lang = dir_path.parent.name
        if lang in available_langs:
            config.theme["language"] = lang
        if not (config.site_url or "").endswith(f"{lang}/") and not lang == "en":
            config.site_url = f"{config.site_url}{lang}/"
        return config
    
    
    def resolve_file(*, item: str, files: Files, config: MkDocsConfig) -> None:
        item_path = Path(config.docs_dir) / item
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  6. scripts/clean.sh

    #!/bin/sh -e
    
    if [ -d 'dist' ] ; then
        rm -r dist
    fi
    if [ -d 'site' ] ; then
        rm -r site
    Shell Script
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Dec 10 03:59:18 GMT 2018
    - 98 bytes
    - Viewed (0)
  7. docs/fr/docs/contributing.md

    Ensuite, il construit tous ces sites MkDocs indépendants pour chaque langue, les combine, et génère le résultat final à `./site/`.
    
    Ensuite, vous pouvez servir cela avec le commandement `serve`:
    
    <div class="termy">
    
    ```console
    // Use the command "serve" after running "build-all"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 27 18:51:07 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  8. CONTRIBUTING.md

    Please read the [Development - Contributing](https://fastapi.tiangolo.com/contributing/) guidelines in the documentation site....
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 25 15:47:49 GMT 2019
    - 127 bytes
    - Viewed (0)
  9. docs/ru/docs/contributing.md

    После чего Вы сможете запустить сервер со всеми языками командой `serve`:
    
    <div class="termy">
    
    ```console
    // Используйте команду "serve" после того, как отработает команда "build-all"
    $ python ./scripts/docs.py serve
    
    Warning: this is a very simple server. For development, use mkdocs serve instead.
    This is here only to preview a site with translations already built.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Jun 11 21:38:15 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  10. .github/workflows/build-docs.yml

          - name: Build Docs
            run: python ./scripts/docs.py build-lang ${{ matrix.lang }}
          - uses: actions/upload-artifact@v3
            with:
              name: docs-site
              path: ./site/**
    
      # https://github.com/marketplace/actions/alls-green#why
      docs-all-green:  # This job does nothing and is only used for the branch protection
        if: always()
        needs:
          - build-docs
    Others
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 03:12:00 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top