diff --git a/Makefile b/Makefile index 2d6865c..edca895 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,9 @@ clean: ## remove the build artifacts, mainly the "public" directory prepare: clean git submodule update --init + python gen_config.py +# All translations share the .toml files in the en translation TEAMS_DIR = content/en/teams TEAMS = emeritus-maintainers maintainers triage-team web-team TEAMS_QUERY = python themes/scientific-python-hugo-theme/tools/team_query.py diff --git a/config.yaml b/config.yaml index 705e6ed..5efa47a 100644 --- a/config.yaml +++ b/config.yaml @@ -1,56 +1,48 @@ -baseURL: https://scipy.scientific-python.org/ +baseURL: https://scipy.org/ languageCode: en-us theme: scientific-python-hugo-theme -disableKinds: ["taxonomy", "term"] +disableKinds: + - taxonomy + - term DefaultContentLanguage: en markup: goldmark: renderer: unsafe: true - -# Uncomment this to disable the translations for the specified languages. -# This may be useful to be able to merge partial translations without deploying -# them to scipy.org immediately. -# disableLanguages: ["pt", "ja"] - +disableLanguages: [] params: images: - /images/logo.svg navColor: blue font: - name: "Lato" - sizes: [400, 900] + name: Lato + sizes: + - 400 + - 900 plausible: dataDomain: scipy.org - languages: en: title: SciPy weight: 1 contentDir: content/en - languageName: English params: - description: Why SciPy? Fundamental algorithms. Broadly applicable. Foundational. Interoperable. Performant. Open source. + description: + Why SciPy? Fundamental algorithms. Broadly applicable. Foundational. + Interoperable. Performant. Open source. navbarlogo: image: logo.svg altText: A blue circle with a snake in the shape of the letter 'S'. text: SciPy link: / hero: - # Main hero title title: SciPy - # Hero subtitle (optional) subtitle: Fundamental algorithms for scientific computing in Python - # Button text buttontext: Get started - # Where the main hero button links to - buttonlink: "/install" - # Hero image (from static/images/___) + buttonlink: /install image: logo.svg - section5: false - navbar: - title: Install url: /install @@ -106,3 +98,79 @@ languages: link: /press-kit - text: Social Media link: /about/#social-media + pt: + title: SciPy + weight: 2 + contentDir: content/pt + languageName: "Portugu\xEAs" + params: + description: + Por que SciPy? Algoritmos fundamentais. Broadly applicable. Foundational. + Interoperable. Performant. Open source. + navbarlogo: + image: logo.svg + altText: A blue circle with a snake in the shape of the letter 'S'. + text: SciPy + link: /pt/ + hero: + title: SciPy + subtitle: Fundamental algorithms for scientific computing in Python + buttontext: Get started + buttonlink: /pt/install + image: logo.svg + section5: false + navbar: + - title: Install + url: /pt/install + - title: Documentation + url: https://docs.scipy.org/doc/scipy/ + - title: Community + url: /pt/community + - title: About Us + url: /pt/about + - title: Contribute + url: /pt/contribute + footer: + logo: logo.svg + socialmediatitle: "" + socialmedia: + - link: https://github.com/scipy/scipy + icon: github + - link: https://discuss.scientific-python.org/c/contributor/scipy/ + icon: scientific-python + quicklinks: + column1: + title: "" + links: + - text: Install + link: /pt/install + - text: Documentation + link: https://docs.scipy.org/doc/scipy/ + - text: Citing SciPy + link: /pt/citing-scipy + - text: Roadmap + link: https://scipy.github.io/devdocs/dev/roadmap.html + column2: + links: + - text: About Us + link: /pt/about + - text: Community + link: /pt/community + - text: SciPy Conference + link: https://conference.scipy.org/ + - text: Contribute + link: /pt/contribute + - text: Code of Conduct + link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html + column3: + links: + - text: FAQ + link: /pt/faq + - text: Terms of Use + link: /pt/terms + - text: Privacy + link: /pt/privacy + - text: Press Kit + link: /pt/press-kit + - text: Social Media + link: /pt/about/#social-media diff --git a/config.yaml.in b/config.yaml.in new file mode 100644 index 0000000..b5dcb3c --- /dev/null +++ b/config.yaml.in @@ -0,0 +1,53 @@ +baseURL: https://scipy.org/ +languageCode: en-us +theme: scientific-python-hugo-theme +disableKinds: ["taxonomy", "term"] +DefaultContentLanguage: en +markup: + goldmark: + renderer: + unsafe: true + +# Uncomment this to disable the translations for the specified languages. +# This may be useful to be able to merge partial translations without deploying +# them to scipy.org immediately. +disableLanguages: [] + +params: + images: + - /images/logo.svg + navColor: blue + font: + name: "Lato" + sizes: [400, 900] + plausible: + dataDomain: scipy.org + +languages: + en: + title: SciPy + weight: 1 + contentDir: content/en + include-files: + - content/en/config.yaml + + es: + title: SciPy + weight: 3 + contentDir: content/es + include-files: + - content/es/config.yaml + + ja: + title: SciPy + weight: 4 + contentDir: content/ja + include-files: + - content/ja/config.yaml + + pt: + title: SciPy + weight: 2 + contentDir: content/pt + include-files: + - content/pt/config.yaml diff --git a/content/en/config.yaml b/content/en/config.yaml new file mode 100644 index 0000000..679edda --- /dev/null +++ b/content/en/config.yaml @@ -0,0 +1,77 @@ +languageName: English +params: + description: Why SciPy? Fundamental algorithms. Broadly applicable. Foundational. Interoperable. Performant. Open source. + navbarlogo: + image: logo.svg + altText: A blue circle with a snake in the shape of the letter 'S'. + text: SciPy + link: / + hero: + # Main hero title + title: SciPy + # Hero subtitle (optional) + subtitle: Fundamental algorithms for scientific computing in Python + # Button text + buttontext: Get started + # Where the main hero button links to + buttonlink: "/install" + # Hero image (from static/images/___) + image: logo.svg + + section5: false + + navbar: + - title: Install + url: /install + - title: Documentation + url: https://docs.scipy.org/doc/scipy/ + - title: Community + url: /community + - title: About Us + url: /about + - title: Contribute + url: /contribute + footer: + logo: logo.svg + socialmediatitle: "" + socialmedia: + - link: https://github.com/scipy/scipy + icon: github + - link: https://discuss.scientific-python.org/c/contributor/scipy/ + icon: scientific-python + quicklinks: + column1: + title: "" + links: + - text: Install + link: /install + - text: Documentation + link: https://docs.scipy.org/doc/scipy/ + - text: Citing SciPy + link: /citing-scipy + - text: Roadmap + link: https://scipy.github.io/devdocs/dev/roadmap.html + column2: + links: + - text: About Us + link: /about + - text: Community + link: /community + - text: SciPy Conference + link: https://conference.scipy.org/ + - text: Contribute + link: /contribute + - text: Code of Conduct + link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html + column3: + links: + - text: FAQ + link: /faq + - text: Terms of Use + link: /terms + - text: Privacy + link: /privacy + - text: Press Kit + link: /press-kit + - text: Social Media + link: /about/#social-media diff --git a/content/es/config.yaml b/content/es/config.yaml new file mode 100644 index 0000000..bd1119b --- /dev/null +++ b/content/es/config.yaml @@ -0,0 +1,77 @@ +languageName: Español +params: + description: Why SciPy? Fundamental algorithms. Broadly applicable. Foundational. Interoperable. Performant. Open source. + navbarlogo: + image: logo.svg + altText: A blue circle with a snake in the shape of the letter 'S'. + text: SciPy + link: /es/ + hero: + # Main hero title + title: SciPy + # Hero subtitle (optional) + subtitle: Fundamental algorithms for scientific computing in Python + # Button text + buttontext: Get started + # Where the main hero button links to + buttonlink: "/es/install" + # Hero image (from static/images/___) + image: logo.svg + + section5: false + + navbar: + - title: Install + url: /es/install + - title: Documentation + url: https://docs.scipy.org/doc/scipy/ + - title: Community + url: /es/community + - title: About Us + url: /es/about + - title: Contribute + url: /es/contribute + footer: + logo: logo.svg + socialmediatitle: "" + socialmedia: + - link: https://github.com/scipy/scipy + icon: github + - link: https://discuss.scientific-python.org/c/contributor/scipy/ + icon: scientific-python + quicklinks: + column1: + title: "" + links: + - text: Install + link: /es/install + - text: Documentation + link: https://docs.scipy.org/doc/scipy/ + - text: Citing SciPy + link: /es/citing-scipy + - text: Roadmap + link: https://scipy.github.io/devdocs/dev/roadmap.html + column2: + links: + - text: About Us + link: /es/about + - text: Community + link: /es/community + - text: SciPy Conference + link: https://conference.scipy.org/ + - text: Contribute + link: /es/contribute + - text: Code of Conduct + link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html + column3: + links: + - text: FAQ + link: /es/faq + - text: Terms of Use + link: /es/terms + - text: Privacy + link: /es/privacy + - text: Press Kit + link: /es/press-kit + - text: Social Media + link: /es/about/#social-media diff --git a/content/es/install.md b/content/es/install.md index d6e68c7..cfaabe3 100644 --- a/content/es/install.md +++ b/content/es/install.md @@ -21,6 +21,7 @@ Para instalar SciPy con \[archivos de tipado estáticos], revisa [Instalación c [static type stubs]: https://typing.readthedocs.io/en/latest/guides/libraries.html +{{< admonition tip >}} Es posible que se requiera instalar archivos de anotaciones de tipos para que los Entornos de Desarrollo Interactivos (IDEs) ofrezcan sugerencias de tipos más precisas. {{< /admonition >}} @@ -98,7 +99,7 @@ Conda puede administrar paquetes en cualquier lenguaje, por lo que puedes usarlo [Conda]: https://docs.conda.io/projects/conda/en/latest/index.html -Los pasos para instalar SciPy desde [conda-forge] usando la herramienta de gestión de paquetes [`pixi`] son ​​muy similares a los pasos para `uv`: +Los pasos para instalar SciPy desde [conda-forge] usando la herramienta de gestión de paquetes [`pixi`] son muy similares a los pasos para `uv`: [conda-forge]: https://conda-forge.org/ [`pixi`]: https://pixi.sh/latest/ @@ -132,10 +133,10 @@ pixi run python name = 'Basado en entornos' content = ''' -En los flujos de trabajo basados ​​en proyectos, un proyecto es un directorio que contiene un archivo que describe el proyecto, un archivo que describe las dependencias exactas del proyecto y los entornos (potencialmente múltiples) del mismo. +En los flujos de trabajo basados en proyectos, un proyecto es un directorio que contiene un archivo que describe el proyecto, un archivo que describe las dependencias exactas del proyecto y los entornos (potencialmente múltiples) del mismo. -Por el contrario, en los flujos de trabajo basados ​​en entornos, instalas paquetes en un entorno, que puedes activar y desactivar desde cualquier directorio. -Estos flujos de trabajo están bien establecidos, pero carecen de algunos beneficios de reproducibilidad de los flujos de trabajo basados ​​en proyectos. +Por el contrario, en los flujos de trabajo basados en entornos, instalas paquetes en un entorno, que puedes activar y desactivar desde cualquier directorio. +Estos flujos de trabajo están bien establecidos, pero carecen de algunos beneficios de reproducibilidad de los flujos de trabajo basados en proyectos. ### Instalación con `pip` @@ -161,7 +162,7 @@ python -m pip install scipy ### Instalación con `conda` -[Miniforge] es la forma recomendada de instalar `conda` y [`mamba`], dos administradores de entorno basados ​​en Conda. +[Miniforge] es la forma recomendada de instalar `conda` y [`mamba`], dos administradores de entorno basados en Conda. Después de crear un entorno, puedes instalar SciPy desde conda-forge de la siguiente manera: ```bash diff --git a/content/ja/_index.md b/content/ja/_index.md index 8e5cba2..0fc4c50 100644 --- a/content/ja/_index.md +++ b/content/ja/_index.md @@ -38,7 +38,6 @@ title = '使いやすさ' body = ''' SciPyの高いレベルで抽象化されたAPIは、どんな技術的バックグラウンドや経験を持つのプログラマーでも簡単に利用することができ、生産性を高めることができます。 ''' -''' [[item]] type = 'card' diff --git a/content/ja/beginner-install.md b/content/ja/beginner-install.md index c44e26e..65e09a4 100644 --- a/content/ja/beginner-install.md +++ b/content/ja/beginner-install.md @@ -53,9 +53,6 @@ python -m pip install scipy ``` {{< admonition warning >}} -You may see this recommended in tutorials or classes, but the recommended -way to install SciPy with `pip` is to use a virtual environment - -see.{{< admonition warning >}} チュートリアルや学校の授業で、このインストール方法が推奨されることがあるかもしれませんが、`pip`を使用して SciPy をインストールする我々としての推奨方法は、仮想環境を利用することです。詳しくは、[`pip`を利用したインストール](./install.md#installing-with-pip)を参照してください。 {{< /admonition >}} diff --git a/content/ja/config.yaml b/content/ja/config.yaml new file mode 100644 index 0000000..f1418e9 --- /dev/null +++ b/content/ja/config.yaml @@ -0,0 +1,77 @@ +languageName: Japanese +params: + description: Why SciPy? Fundamental algorithms. Broadly applicable. Foundational. Interoperable. Performant. Open source. + navbarlogo: + image: logo.svg + altText: A blue circle with a snake in the shape of the letter 'S'. + text: SciPy + link: /ja/ + hero: + # Main hero title + title: SciPy + # Hero subtitle (optional) + subtitle: Fundamental algorithms for scientific computing in Python + # Button text + buttontext: Get started + # Where the main hero button links to + buttonlink: "/ja/install" + # Hero image (from static/images/___) + image: logo.svg + + section5: false + + navbar: + - title: Install + url: /ja/install + - title: Documentation + url: https://docs.scipy.org/doc/scipy/ + - title: Community + url: /ja/community + - title: About Us + url: /ja/about + - title: Contribute + url: /ja/contribute + footer: + logo: logo.svg + socialmediatitle: "" + socialmedia: + - link: https://github.com/scipy/scipy + icon: github + - link: https://discuss.scientific-python.org/c/contributor/scipy/ + icon: scientific-python + quicklinks: + column1: + title: "" + links: + - text: Install + link: /ja/install + - text: Documentation + link: https://docs.scipy.org/doc/scipy/ + - text: Citing SciPy + link: /ja/citing-scipy + - text: Roadmap + link: https://scipy.github.io/devdocs/dev/roadmap.html + column2: + links: + - text: About Us + link: /ja/about + - text: Community + link: /ja/community + - text: SciPy Conference + link: https://conference.scipy.org/ + - text: Contribute + link: /ja/contribute + - text: Code of Conduct + link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html + column3: + links: + - text: FAQ + link: /ja/faq + - text: Terms of Use + link: /ja/terms + - text: Privacy + link: /ja/privacy + - text: Press Kit + link: /ja/press-kit + - text: Social Media + link: /ja/about/#social-media diff --git a/content/ja/install.md b/content/ja/install.md index 3c15261..8c299b5 100644 --- a/content/ja/install.md +++ b/content/ja/install.md @@ -16,15 +16,14 @@ SciPyの推奨されるインストール方法は、あなたの好みのワー - **システムパッケージマネージャー** _(推奨されません)_ - **ソースからのビルド** _(デバッグと開発用)_ -\[静的型スタブ]を使用してSciPyをインストールするには、 +[静的型スタブ]を使用してSciPyをインストールするには、 [型スタブを使用したインストール](#type-stubs)をご覧ください。 -[static type stubs]: [https://typing.readthedocs.io/en/latest/guides/libraries.html]\(https://typing.readthedocs.io/en/latest/guides/libraries.html\) +[static type stubs]: https://typing.readthedocs.io/en/latest/guides/libraries.html {{< admonition tip >}} 統合開発環境 (IDE) が正確な型ヒントを提供するためには、型スタブのインストールが必要となる場合があります。 {{< /admonition >}} -{{< /admonition >}} {{< tabs >}} @@ -36,7 +35,7 @@ content = ''' Pythonパッケージマネージャーであるuvを使用してSciPyを使用するためのプロジェクトをセットアップする手順は以下の通りです。 -1. [uvドキュメントのインストール手順]([https://docs.astral.sh/uv/getting-started/installation/)に従って](https://www.google.com/search?q=https://docs.astral.sh/uv/getting-started/installation/)%E3%81%AB%E5%BE%93%E3%81%A3%E3%81%A6)、\`uv\`をインストールします。 +1. [uvドキュメントのインストール手順](https://docs.astral.sh/uv/getting-started/installation/)に従って、\`uv\`をインストールします。 2. 新しいサブディレクトリに新しいプロジェクトを作成します。ターミナルで以下を実行します。 @@ -48,7 +47,6 @@ cd try-scipy {{< admonition hint >}} 2番目のコマンドは、ディレクトリをプロジェクトのディレクトリに変更します。 {{< /admonition >}} -{{< /admonition >}} 3. SciPyをプロジェクトに追加します。 @@ -59,7 +57,6 @@ uv add scipy {{< admonition note >}} これは、Pythonがまだインストールされていない場合に、自動的にPythonをインストールします! {{< /admonition >}} -{{< /admonition >}} {{< admonition tip >}} 同じ方法で他のPythonライブラリもインストールできます。例: @@ -84,6 +81,8 @@ uv run python [scipy-user-guide]: https://docs.conda.io/projects/conda/en/latest/index.html +{{< admonition note >}} + パッケージ管理ツール[`pixi`]を使用して[conda-forge]からSciPyをインストールする手順は、`uv`を使った場合と非常に似ています。 コンピューターを再起動した後、`try-scipy`プロジェクトディレクトリに移動し、`uv run python`を実行して、SciPyをインポート可能なPythonインタプリタに戻る必要があります。 @@ -92,7 +91,7 @@ Pythonスクリプトを実行するには、`uv run myscript.py`を使用でき 詳細は[uvのプロジェクトでの作業ガイド][uv-projects]をご覧ください。 -[uv-projects]: [https://docs.astral.sh/uv/guides/projects/]\(https://docs.astral.sh/uv/guides/projects/\) +[uv-projects]: https://docs.astral.sh/uv/guides/projects/ {{< /admonition >}} @@ -103,16 +102,16 @@ Condaはあらゆる言語のパッケージを管理できるため、Python自 Condaは任意の言語でパッケージを管理できるため、 Python自体や、コンパイラ、その他の言語をインストールするのにも使用できます。 -[Conda]: [https://docs.conda.io/projects/conda/en/latest/index.html]\(https://docs.conda.io/projects/conda/en/latest/index.html\) +[Conda]: https://docs.conda.io/projects/conda/en/latest/index.html パッケージ管理ツール[`pixi`]を使用して[conda-forge]からSciPyをインストールする手順は、`uv`の手順と非常によく似ています。 -[conda-forge]: [https://conda-forge.org/]\(https://conda-forge.org/\) -[`pixi`]: [https://pixi.sh/latest/]\(https://pixi.sh/latest/\) +[conda-forge]: https://conda-forge.org/ +[`pixi`]: https://pixi.sh/latest/ 1. [`pixi`ドキュメントのインストール手順][install-pixi]に従って、`pixi`をインストールします。 -[install-pixi]: [https://pixi.sh/latest/]\(https://pixi.sh/latest/\) +[install-pixi]: https://pixi.sh/latest/ 2. 新しいサブディレクトリに新しいプロジェクトを作成します。 @@ -151,13 +150,12 @@ content = ''' -1. [Pythonをインストール](\[https://www.python.org/downloads/)します]([https://www.google.com/search?q=https://www.python.org/downloads/)%E3%81%97%E3%81%BE%E3%81%99](https://www.google.com/search?q=https://www.python.org/downloads/)%E3%81%97%E3%81%BE%E3%81%99))。 +1. [Pythonをインストール](https://www.python.org/downloads/)します。 2. `venv` を使用して仮想環境を作成し、アクティブ化します。 {{< admonition hint >}} -[Python Packaging User Guideのチュートリアル](\[https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments)をご覧ください]([https://www.google.com/search?q=https://packaging.python.org/en/latest/tutorials/installing-packages/%23creating-virtual-environments)%E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84](https://www.google.com/search?q=https://packaging.python.org/en/latest/tutorials/installing-packages/%23creating-virtual-environments)%E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84))。 -{{< /admonition >}} +[Python Packaging User Guideのチュートリアル](https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments)をご覧ください。 {{< /admonition >}} 3. [`pip`] を使用して SciPy をインストールします。 @@ -168,7 +166,7 @@ python -m pip install scipy -[`pip`]: [https://pip.pypa.io/en/stable/getting-started/]\(https://pip.pypa.io/en/stable/getting-started/\) +[`pip`]: https://pip.pypa.io/en/stable/getting-started/ ### `conda` を使用したインストール @@ -181,8 +179,9 @@ conda install scipy # または mamba install scipy ``` -[Miniforge]: [https://conda-forge.org/download/]\(https://conda-forge.org/download/\) -[`mamba`]: [https://mamba.readthedocs.io/en/latest/]\(https://mamba.readthedocs.io/en/latest/\) +[Miniforge]: https://conda-forge.org/download/ + +[`mamba`]: https://mamba.readthedocs.io/en/latest/ ''' @@ -229,7 +228,7 @@ content = ''' 注意点: ソースコードからSciPyをビルドするのは簡単ではない場合があります。 お使いのプラットフォームで、上記の方法のいずれかを通じてバイナリソフトが利用可能な場合は、それを使用することをおすすめします。 ソースコードからのビルド方法の詳細については、 -\[ビルドドキュメント] を参照してください。 +[ビルドドキュメント] を参照してください。 [building-docs]: https://scipy.github.io/devdocs/building/index.html @@ -237,7 +236,7 @@ content = ''' {{}} -次のステップは[SciPyユーザーガイド]([https://docs.scipy.org/doc/scipy/tutorial/)をご覧ください]([https://www.google.com/search?q=https://docs.scipy.org/doc/scipy/tutorial/)%E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84](https://www.google.com/search?q=https://docs.scipy.org/doc/scipy/tutorial/)%E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84))。 +次のステップは[SciPyユーザーガイド](https://docs.scipy.org/doc/scipy/tutorial/)をご覧ください。 {{< admonition tip >}} IDE(統合開発環境)で正確な型ヒントを提供するために、型スタブのインストールが必要になる場合があります。 @@ -261,4 +260,4 @@ conda install "scipy-typed>=1.14" ``` 静的型付けのサポートに関する質問は、 -[`scipy-stubs` GitHubリポジトリ]([https://github.com/jorenham/scipy-stubs)にお寄せください](https://www.google.com/search?q=https://github.com/jorenham/scipy-stubs)%E3%81%AB%E3%81%8A%E5%AF%84%E3%81%9B%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84)。 +[`scipy-stubs` GitHubリポジトリ](https://github.com/jorenham/scipy-stubs)にお寄せください。 diff --git a/content/pt/config.yaml b/content/pt/config.yaml new file mode 100644 index 0000000..f9173cc --- /dev/null +++ b/content/pt/config.yaml @@ -0,0 +1,77 @@ +languageName: Português +params: + description: Por que SciPy? Algoritmos fundamentais. Amplas aplicações. Fundamental. Interoperável. Alto desempenho. Open source. + navbarlogo: + image: logo.svg + altText: A blue circle with a snake in the shape of the letter 'S'. + text: SciPy + link: /pt/ + hero: + # Main hero title + title: SciPy + # Hero subtitle (optional) + subtitle: Algoritmos fundamentais para computação científica com Python + # Button text + buttontext: Comece aqui + # Where the main hero button links to + buttonlink: "/pt/install" + # Hero image (from static/images/___) + image: logo.svg + + section5: false + + navbar: + - title: Instalar + url: /pt/install + - title: Documentação + url: https://docs.scipy.org/doc/scipy/ + - title: Comunidade + url: /pt/community + - title: Quem somos + url: /pt/about + - title: Contribuir + url: /pt/contribute + footer: + logo: logo.svg + socialmediatitle: "" + socialmedia: + - link: https://github.com/scipy/scipy + icon: github + - link: https://discuss.scientific-python.org/c/contributor/scipy/ + icon: scientific-python + quicklinks: + column1: + title: "" + links: + - text: Instalar + link: /pt/install + - text: Documentação + link: https://docs.scipy.org/doc/scipy/ + - text: Citar a SciPy + link: /pt/citing-scipy + - text: Roadmap + link: https://scipy.github.io/devdocs/dev/roadmap.html + column2: + links: + - text: Quem somos + link: /pt/about + - text: Comunidade + link: /pt/community + - text: SciPy Conference + link: https://conference.scipy.org/ + - text: Contribuir + link: /pt/contribute + - text: Código de Conduta (em inglês) + link: https://docs.scipy.org/doc/scipy/dev/conduct/code_of_conduct.html + column3: + links: + - text: FAQ + link: /pt/faq + - text: Termos de Uso (em inglês) + link: /pt/terms + - text: Privacidade + link: /pt/privacy + - text: Kit de imprensa + link: /pt/press-kit + - text: Mídias Sociais + link: /pt/about/#social-media diff --git a/content/pt/install.md b/content/pt/install.md index 54729bf..28150dd 100644 --- a/content/pt/install.md +++ b/content/pt/install.md @@ -30,7 +30,8 @@ Ambientes de Desenvolvimento Interativo (IDEs) para fornecer dicas de tipo preci [[tab]] name = 'Baseado em Projetos' -content = ''' +content = ''' + ### Instalando com uv @@ -121,7 +122,7 @@ pixi init try-scipy cd try-scipy ``` -3. Criar um novo projeto em um novo subdiretório, executando o seguinte em um terminal: +3. Adicionar a SciPy ao seu projeto: ```bash pixi add scipy @@ -137,7 +138,8 @@ pixi run python [[tab]] name = 'Environment Based' -content = ''' +content = ''' + Em fluxos de trabalho baseados em projetos, um projeto é um diretório que contém um arquivo manifesto descrevendo o projeto, um arquivo lock-file descrevendo as dependências exatas do projeto, e os (potencialmente vários) ambientes do projeto. @@ -161,7 +163,6 @@ Veja [o tutorial no Python Packaging User Guide](https://packaging.python.org/en ```bash python -m pip install scipy ``` - [`pip`]: https://pip.pypa.io/en/stable/getting-started/ @@ -180,12 +181,12 @@ mamba install scipy [Miniforge]: https://conda-forge.org/download/ [`mamba`]: https://mamba.readthedocs.io/en/latest/ - ''' [[tab]] name = 'Package Manager' -content = ''' +content = ''' + ## Instalando com os stubs de tipagem @@ -222,7 +223,8 @@ brew install scipy [[tab]] name = 'Building from Source' -content = ''' +content = ''' + Cuidado: compilar a SciPy a partir do código fonte pode ser um exercício não trivial. Recomendamos o uso de binários, em vez disso, se eles estiverem disponíveis para a sua plataforma em um dos métodos acima. Para mais detalhes sobre como compilar a partir do código fonte, consulte [o guia de compilação a partir do código fonte na documentação da SciPy][building-docs]. diff --git a/gen_config.py b/gen_config.py new file mode 100644 index 0000000..3176333 --- /dev/null +++ b/gen_config.py @@ -0,0 +1,43 @@ +import os +import re +import yaml + + +config = yaml.load(open("config.yaml.in", encoding="utf-8"), Loader=yaml.SafeLoader) + + +def merge_dicts(d1, d2): + for key, value in d2.items(): + if key in d1: + if isinstance(value, list): + d1[key].extend(value) + elif isinstance(value, dict): + merge_dicts(d1[key], value) + else: + d1[key] = value + + return d1 + + +def include_files(d): + external = {} + for key, val in d.items(): + if isinstance(val, dict): + d[key] = include_files(val) + elif key == "include-files": + for otherfile in val: + external_data = yaml.load( + open(otherfile, encoding="utf-8"), Loader=yaml.SafeLoader + ) + external = merge_dicts(external, external_data) + + d.pop("include-files", None) + return {**d, **external} + + +config = include_files(config) +if os.environ.get("SCIPYORG_WITH_TRANSLATIONS"): + del config["disableLanguages"] + + +yaml.dump(config, open("config.yaml", "w", encoding="utf-8"), sort_keys=False)