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

Contributing code via pull requests #1804

Merged
merged 18 commits into from
Oct 6, 2021
Merged

Contributing code via pull requests #1804

merged 18 commits into from
Oct 6, 2021

Conversation

roshnaeem
Copy link
Contributor

Description:
Updating the Contributing code via pull requests.

@roshnaeem roshnaeem marked this pull request as draft September 17, 2021 02:49
@roshnaeem roshnaeem changed the title WIP-Contributing code via pull requests Contributing code via pull requests Sep 21, 2021
@roshnaeem roshnaeem marked this pull request as ready for review September 21, 2021 01:26
@roshnaeem roshnaeem added the User Documentation Documentation outside of the codebase label Sep 21, 2021
@@ -82,34 +80,47 @@ Section in construction

1. Fork the [project repository](https://github.com/arviz-devs/arviz/) by clicking on the 'Fork' button near the top right of the main repository page. This creates a copy of the code under your GitHub user account.

2. Clone your fork of the ArviZ repo from your GitHub account to your local disk, and add the base repository as a remote:
2. Clone your fork of the ArviZ repo from your GitHub account to your local disk.
Copy link
Member

Choose a reason for hiding this comment

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

the double https/ssh double code alternatives look a bit bloated to me right now, can you try and see how they look with synced tabs from sphinx-design? ref #1751 (also double check that it doesn't break the about us page for example

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


3. Create a ``feature`` branch to hold your development changes:
4. Create a ``feature`` branch to hold your development changes:

```bash
$ git checkout -b my-feature
```

Always use a ``feature`` branch. It's good practice to never routinely work on the ``main`` branch of any repository.
Copy link
Member

Choose a reason for hiding this comment

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

Seeing how we often get PRs from main, maybe we could put this two sentences inside an important or warning admonitions so it pops up? Now that we have this here and not on github we can use all sphinx powered cool formatting

Copy link
Contributor Author

@roshnaeem roshnaeem Oct 2, 2021

Choose a reason for hiding this comment

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

Sure, on it

Comment on lines 133 to 134
> :warning: Always create a new ``feature`` branch before making any changes. Make your chnages
in the ``feature`` branch. It's good practice to never routinely work on the ``main`` branch of any repository.
Copy link
Member

Choose a reason for hiding this comment

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

this renders a bit strangely, it looks like a workaround to get admonitions in markdown. MyST supports them natively with the syntax shown in https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#directives-a-block-level-extension-point and https://jupyterbook.org/content/content-blocks.html#notes-warnings-and-other-admonitions.

Here is the list of all available admonitions for reference: https://sphinx-book-theme.readthedocs.io/en/latest/reference/kitchen-sink/paragraph-markup.html#admonitions

@OriolAbril OriolAbril merged commit d9984fb into arviz-devs:main Oct 6, 2021
@roshnaeem roshnaeem deleted the PR branch October 6, 2021 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Documentation Documentation outside of the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants