Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

augmentation of documentation #71

Merged
merged 13 commits into from Jul 4, 2019
Merged

augmentation of documentation #71

merged 13 commits into from Jul 4, 2019

Conversation

fneum
Copy link
Member

@fneum fneum commented May 24, 2019

@FabianHofmann and I discussed a few ideas for improving the PyPSA documentation:

  • add autodocs for documented functions
  • change theme to sphinx_rtd_theme from alabaster
  • readthedocs automatic deployment
  • remove some duplicate content
  • add shields.io stickers
  • API reference

What one could do another time:

Current state is on https://pypsa-readthedocs.readthedocs.io/

Once merged, need to change settings on https://readthedocs.org and add correct webhook in github as well as forwarding https://pypsa.org/documentation to https://pypsa.readthedocs.io.

@coroa
Copy link
Member

coroa commented May 26, 2019

Is it possible to have an automatic read-the-docs deployment for this pull request only, for the time being?

@FabianHofmann
Copy link
Collaborator

we already worked on this during the openmod conference, and the commit already includes nice features. I think we can definitely comment out some of the changes (and keep it for later?). On the other hand, when introducing autodocs, you have to rewrite some of the text anyway to make it sensible. And then, you could/should go through the docs and watch out for redundant duplicates and sortings.
Is there a specific point you don't want to have included?

@coroa
Copy link
Member

coroa commented May 27, 2019

I think its good to have this PR to document the progress of the full checklist, but I would also like if the documentation is already updated now, so ideally someone would set up the service to auto-build based on the readthedocs branch instead of master.

@fneum
Copy link
Member Author

fneum commented May 27, 2019

@coroa
Copy link
Member

coroa commented May 28, 2019

Hi @fneum,

it'd be good to add [skip travis] to your doc-only commit messages as described in the travis docs, so we do not put unnecessary load on their servers.

Best,

@fneum
Copy link
Member Author

fneum commented May 28, 2019

Will do from the next commit onwards; forgot for the current one.

@coroa
Copy link
Member

coroa commented May 28, 2019

Great, let's use the style:

use sphinx.ext.napoleon for numpydocs [skip travis]

@fneum fneum marked this pull request as ready for review May 28, 2019 12:18
@fneum
Copy link
Member Author

fneum commented May 28, 2019

Current state is on https://pypsa-readthedocs.readthedocs.io/ and ready for review.

What one could do another time in separate pull requests:

I would recommend squashing the commits when merging.

Copy link
Member

@coroa coroa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in general in favor with the updates. Having tighter links with the code probably helps deduplication.

Many packages split their documentation in a user guide and an API reference. Just compare with xarray or pandas. Perhaps that would make it a bit easier to find one's way around.

doc/import_export.rst Outdated Show resolved Hide resolved
doc/import_export.rst Show resolved Hide resolved
doc/import_export.rst Outdated Show resolved Hide resolved
doc/import_export.rst Show resolved Hide resolved
doc/import_export.rst Outdated Show resolved Hide resolved
doc/plotting.rst Outdated Show resolved Hide resolved
doc/power_flow.rst Show resolved Hide resolved
environment_docs.yml Outdated Show resolved Hide resolved
pypsa/component_attrs/networks.csv Show resolved Hide resolved
pypsa/io.py Show resolved Hide resolved
@fneum fneum self-assigned this May 28, 2019
@fneum fneum changed the title WIP: augmentation of documentation augmentation of documentation May 28, 2019
Copy link
Member

@coroa coroa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, I like the new menu arrangement! It's a lot less intimidating than it was before.

environment_docs.yml Outdated Show resolved Hide resolved
pypsa/components.py Show resolved Hide resolved
pypsa/io.py Show resolved Hide resolved
doc/index.rst Outdated Show resolved Hide resolved
@coroa
Copy link
Member

coroa commented May 29, 2019

While you're at it maybe add one of the conda-forge badges:

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms
| Name | Downloads | Version | Platforms |
| --- | --- | --- | --- |
| [![Conda Recipe](https://img.shields.io/badge/recipe-pypsa-green.svg)](https://anaconda.org/conda-forge/pypsa) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/pypsa.svg)](https://anaconda.org/conda-forge/pypsa) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/pypsa.svg)](https://anaconda.org/conda-forge/pypsa) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/pypsa.svg)](https://anaconda.org/conda-forge/pypsa) |

I think, I'd take just the version one.

@FabianHofmann
Copy link
Collaborator

I added a small update on the plots in the introduction. it is minor changes in the docs but I had to update some parts in the scigrid and ac-dc-meshed scripts.

@coroa
Copy link
Member

coroa commented May 31, 2019

@FabianHofmann Thanks for the update of all these examples :), that was overdue.

Couple of comments:

  • You added a scigrid-lopf-then-pf.py script to the doc/img/ folder. I don't think that was intentional.
  • The Großkleinschreibung of Pypsa-EUR should be PyPSA-Eur.
  • The colors in the PyPSA-Eur plot are strange: Green for solar?? Probably best would be to use the tech_colors that @fneum prepared in fresh color palette for tech_colors pypsa-eur#35 .
  • The file sizes of the new plots are quite large, f.i. 1.2M for the PyPSA-Eur one. Less DPI or a bit smaller maybe (aim for ~ 400K or some such).

and

add the label [skip travis] to your commit messages to skip running tests for these doc updates.

@coroa
Copy link
Member

coroa commented Jun 3, 2019

Awesome! Thanks for the quick update addressing all my comments.

In as far as I am able to judge https://pypsa-readthedocs.readthedocs.io/ is already vastly superior to our current documentation.

@nworbmot If you have comments, inspirations and even better ideas, I think now's a good time!

Please don't merge as merge commit, but either squash it or allow me to rewrite the history slightly so we don't pull in the large immediate images.

fneum and others added 2 commits July 4, 2019 22:20
- examples:
  - include plot of acdc meshed
	- rearrange scigrid example plots

- introduction.rst:
	update plots
@coroa coroa merged commit 8216767 into master Jul 4, 2019
@coroa
Copy link
Member

coroa commented Jul 4, 2019

@fneum Ok, it's merged, can you do the readthedocs changes? And ping @nworbmot to update pypsa.org/documentation once it's all set!

@fneum fneum deleted the readthedocs branch July 5, 2019 07:16
@fneum
Copy link
Member Author

fneum commented Jul 5, 2019

@nworbmot
Copy link
Member

I've added a redirect to pypsa.org/doc/*, try e.g.
https://pypsa.org/doc/optimal_power_flow.html

@fneum
Copy link
Member Author

fneum commented Jul 21, 2019

Thanks, works for me!

fneum pushed a commit that referenced this pull request Mar 20, 2022
[WIP] capital cost and underwater fraction update in clustering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants