From 7bb4d3841b8f2dc3e3f8bb08e337e6996f6a493e Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 18 Sep 2019 14:40:42 +0100 Subject: [PATCH 1/6] Deploying website with the docs --- azure-pipelines.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 263a87176a9c9..d3574eb8f0895 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -104,7 +104,7 @@ jobs: displayName: 'Running benchmarks' condition: true -- job: 'Docs' +- job: 'Web and Docs' pool: vmImage: ubuntu-16.04 timeoutInMinutes: 90 @@ -119,6 +119,11 @@ jobs: ci/setup_env.sh displayName: 'Setup environment and build pandas' + - script: | + source activate pandas-dev + web/pandas_web.py pandas + displayName: 'Build website' + - script: | source activate pandas-dev # Next we should simply have `doc/make.py --warnings-are-errors`, everything else is required because the ipython directive doesn't fail the build on errors (https://github.com/ipython/ipython/issues/11547) @@ -128,15 +133,18 @@ jobs: displayName: 'Build documentation' - script: | - cd doc/build/html + mkdir -p to_deploy/docs + cp -r web/build/* to_deploy/ + cp -r doc/build/html/* to_deploy/docs/ + cd to_deploy git init touch .nojekyll echo "dev.pandas.io" > CNAME printf "User-agent: *\nDisallow: /" > robots.txt git add --all . git config user.email "pandas-dev@python.org" - git config user.name "pandas-docs-bot" - git commit -m "pandas documentation in master" + git config user.name "pandas-bot" + git commit -m "pandas web and documentation in master" displayName: 'Create git repo for docs build' condition : | and(not(eq(variables['Build.Reason'], 'PullRequest')), @@ -163,7 +171,7 @@ jobs: cd doc/build/html git remote add origin git@github.com:pandas-dev/pandas-dev.github.io.git git push -f origin master - displayName: 'Publish docs to GitHub pages' + displayName: 'Publish web and docs to GitHub pages' condition : | and(not(eq(variables['Build.Reason'], 'PullRequest')), eq(variables['Build.SourceBranch'], 'refs/heads/master')) From 9ad605f80b3b303b89114b48992d98acf35cd708 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 18 Sep 2019 15:07:02 +0100 Subject: [PATCH 2/6] Updating links to the new structure --- README.md | 2 +- doc/source/whatsnew/v0.25.0.rst | 2 +- web/pandas/config.yml | 10 +++++----- web/pandas/donate.md | 2 +- web/pandas/index.html | 16 ++++++++-------- web/pandas/install.md | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index d5e71fc4740cf..7786eeb0ec5c7 100644 --- a/README.md +++ b/README.md @@ -225,7 +225,7 @@ Most development discussion is taking place on github in this repo. Further, the All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome. -A detailed overview on how to contribute can be found in the **[contributing guide](https://dev.pandas.io/contributing.html)**. There is also an [overview](.github/CONTRIBUTING.md) on GitHub. +A detailed overview on how to contribute can be found in the **[contributing guide](https://dev.pandas.io/docs/contributing.html)**. There is also an [overview](.github/CONTRIBUTING.md) on GitHub. If you are simply looking to start working with the pandas codebase, navigate to the [GitHub "issues" tab](https://github.com/pandas-dev/pandas/issues) and start looking through interesting issues. There are a number of issues listed under [Docs](https://github.com/pandas-dev/pandas/issues?labels=Docs&sort=updated&state=open) and [good first issue](https://github.com/pandas-dev/pandas/issues?labels=good+first+issue&sort=updated&state=open) where you could start out. diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index fe1e2d7826d62..e245f55f7bcfa 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -828,7 +828,7 @@ If installed, we now require: | pytest (dev) | 4.0.2 | | +-----------------+-----------------+----------+ -For `optional libraries `_ the general recommendation is to use the latest version. +For `optional libraries `_ the general recommendation is to use the latest version. The following table lists the lowest version per library that is currently being tested throughout the development of pandas. Optional libraries below the lowest tested version may still work, but are not considered supported. diff --git a/web/pandas/config.yml b/web/pandas/config.yml index ba979e220f3bd..c7c4b77e309f7 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -26,15 +26,15 @@ navbar: - name: "Documentation" target: - name: "Getting started" - target: https://pandas.pydata.org/pandas-docs/stable/getting_started/index.html + target: /docs/getting_started/index.html - name: "User guide" - target: https://pandas.pydata.org/pandas-docs/stable/user_guide/index.html + target: /docs/user_guide/index.html - name: "API reference" - target: https://pandas.pydata.org/pandas-docs/stable/reference/index.html + target: /docs/reference/index.html - name: "Contributing to pandas" - target: https://pandas.pydata.org/pandas-docs/stable/development/index.html + target: /docs/development/index.html - name: "Release notes" - target: https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html + target: /docs/whatsnew/index.html - name: "Community" target: - name: "About pandas" diff --git a/web/pandas/donate.md b/web/pandas/donate.md index 5badb4c5a2031..5f5b07fb8763c 100644 --- a/web/pandas/donate.md +++ b/web/pandas/donate.md @@ -7,7 +7,7 @@ You can find more information about current developers and supporters in the [te Financial contributions will mainly be used to advance in the [pandas roadmap](community/roadmap.html). - If your **company or organization** is interested in helping make pandas better, please contact us at [info@numfocus.org](mailto:info@numfocus.org) -- If you want to contribute to _pandas_ with your **time**, please visit the [contributing page](https://pandas.pydata.org/pandas-docs/stable/development/index.html) +- If you want to contribute to _pandas_ with your **time**, please visit the [contributing page]({{ base_url }}/docs/development/index.html) - If you want to support _pandas_ with a **donation**, please use the form below: diff --git a/web/pandas/index.html b/web/pandas/index.html index 696f0862aa109..9f1a0e9a64174 100644 --- a/web/pandas/index.html +++ b/web/pandas/index.html @@ -20,16 +20,16 @@
Getting started
@@ -58,10 +58,10 @@
With the support of:
{% if releases %}

Latest version: {{ releases[0].name }}

{% endif %} diff --git a/web/pandas/install.md b/web/pandas/install.md index c6cccd803e33e..84721b3d1d9a4 100644 --- a/web/pandas/install.md +++ b/web/pandas/install.md @@ -2,7 +2,7 @@ The next steps provides the easiest and recommended way to set up your environment to use pandas. Other installation options can be found in -the [advanced installation page](https://pandas.pydata.org/pandas-docs/stable/install.html). +the [advanced installation page]({{ base_url}}/docs/install.html). 1. Download [Anaconda](https://www.anaconda.com/distribution/) for your operating system and the latest Python version, run the installer, and follow the steps. Detailed instructions From ffa5587769427e88125be987f37099ce5dfd9eaa Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 18 Sep 2019 15:14:59 +0100 Subject: [PATCH 3/6] Fixing build name (spaces not allowed) --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d3574eb8f0895..dddcbd98d2301 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -104,7 +104,7 @@ jobs: displayName: 'Running benchmarks' condition: true -- job: 'Web and Docs' +- job: 'Web_and_Docs' pool: vmImage: ubuntu-16.04 timeoutInMinutes: 90 From 80be34423a9f7ae24a383cd53198f32572da8549 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 18 Sep 2019 15:45:45 +0100 Subject: [PATCH 4/6] Fixing permission problem when building the website --- azure-pipelines.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dddcbd98d2301..64d10537fcf2c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -121,7 +121,7 @@ jobs: - script: | source activate pandas-dev - web/pandas_web.py pandas + python web/pandas_web.py pandas displayName: 'Build website' - script: | @@ -136,6 +136,9 @@ jobs: mkdir -p to_deploy/docs cp -r web/build/* to_deploy/ cp -r doc/build/html/* to_deploy/docs/ + display: 'Merge website and docs' + + - script: | cd to_deploy git init touch .nojekyll From 408798d1162f51fd3a2e9b1782605281b15f6ad9 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 18 Sep 2019 16:16:31 +0100 Subject: [PATCH 5/6] Fixing typo --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 64d10537fcf2c..9c6515bc309ac 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -136,7 +136,7 @@ jobs: mkdir -p to_deploy/docs cp -r web/build/* to_deploy/ cp -r doc/build/html/* to_deploy/docs/ - display: 'Merge website and docs' + displayName: 'Merge website and docs' - script: | cd to_deploy From 3ad814126ddf08d3b643117560a7cefd3e22b8a5 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 18 Sep 2019 17:07:29 +0100 Subject: [PATCH 6/6] Fixing path --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9c6515bc309ac..ba7a3bfb6ae36 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -121,7 +121,7 @@ jobs: - script: | source activate pandas-dev - python web/pandas_web.py pandas + python web/pandas_web.py web/pandas displayName: 'Build website' - script: |