-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Revising contribution docs (Lombiq Technologies: OCORE-154) #15706
Revising contribution docs (Lombiq Technologies: OCORE-154) #15706
Conversation
## Code of conduct | ||
|
||
See [CODE-OF-CONDUCT.md](./CODE-OF-CONDUCT.md) | ||
See [Contributing to Orchard Core](https://docs.orchardcore.net/en/latest/docs/guides/contributing/) on the documentation site. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the content of this page and reworked it to there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reworked this so it doesn't overlap with src/README.md
. They were partially overlapping, with conflicting information, but neither had the full picture.
We can't assume if a person will see this or the docs page first, so this now always points to the docs, apart from what's specific to the code and GitHub.
The documentation can be accessed under <https://docs.orchardcore.net/>. See [the getting started docs](https://docs.orchardcore.net/en/latest/docs/getting-started/) on how to start using Orchard Core. | ||
|
||
You can also run Orchard Core from Docker: | ||
|
||
``` | ||
docker run --name orchardcms -p 8080:80 orchardproject/orchardcore-cms-linux:latest | ||
``` | ||
|
||
Docker images and parameters can be found at <https://hub.docker.com/u/orchardproject/>. See [our Docker documentation](https://docs.orchardcore.net/en/latest/docs/topics/docker/) for more details, especially if you're new to Docker. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this to the linked test drive page.
First, clone the repository using the command `git clone https://github.com/OrchardCMS/OrchardCore.git` and checkout the `main` branch. Then, you have multiple options, see below. And when you're ready, head over to [our contribution guide](CONTRIBUTING.md). | ||
|
||
### Command Line | ||
|
||
1. Install the latest version of the .NET SDK from this page: <https://dotnet.microsoft.com/download>. | ||
2. Navigate to `./OrchardCore/src/OrchardCore.Cms.Web`. | ||
3. Run `dotnet run`. | ||
4. Open the `http://localhost:5000` URL in your browser. | ||
|
||
### Visual Studio | ||
|
||
1. Download Visual Studio 2022 (v17.8+) from <https://www.visualstudio.com/downloads>. | ||
2. Launch the solution by clicking on `OrchardCore.sln`. Give Visual Studio time to restore all missing Nuget packages. | ||
3. Ensure `OrchardCore.Cms.Web` is set as the startup project. Then run the app. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now part of the contribution docs.
[![Join the chat at https://gitter.im/OrchardCMS/OrchardCore](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/OrchardCMS/OrchardCore?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![BSD-3-Clause License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg)](https://github.com/OrchardCMS/OrchardCore/blob/master/LICENSE) | ||
[![Documentation](https://readthedocs.org/projects/orchardcore/badge/)](https://docs.orchardcore.net/) | ||
[![Crowdin](https://badges.crowdin.net/orchard-core/localized.svg)](https://crowdin.com/project/orchard-core) | ||
|
||
## Local communities | ||
|
||
中文资源 | ||
|
||
[![Orchard Core CN 中文讨论组](docs/assets/images/orchard-core-cn-community-logo.png)](https://shang.qq.com/wpa/qunwpa?idkey=48721591a71ee7586316604a7a4ee99d26fd977c6120370a06585085a5936f62) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are better in the root Readme, displayed on GitHub.
### Command line | ||
|
||
- Install the latest version of the .NET SDK from this page <https://dotnet.microsoft.com/download> | ||
- Next, navigate to `D:\OrchardCore\src\OrchardCore.Cms.Web` or wherever your folder is on the commandline in Administrator mode. | ||
- Call `dotnet run`. | ||
- Then open the `http://localhost:5000` URL in your browser. | ||
|
||
You can also read the [Code Generation Templates documentation](docs/getting-started/templates/README.md) to create new applications from predefined templates. | ||
|
||
### Visual Studio | ||
|
||
For more details on the various development tools we recommend for using with Orchard Core check out [the Development Tools documentation page](docs/resources/development-tools/README.md). | ||
|
||
- Download Visual Studio 2022 (any edition) from <https://www.visualstudio.com/downloads/>. | ||
- Open `OrchardCore.sln` and wait for Visual Studio to restore all Nuget packages. | ||
- Ensure `OrchardCore.Cms.Web` is the startup project and run it. | ||
- Optionally install the [Lombiq Orchard Visual Studio Extension](https://marketplace.visualstudio.com/items?itemName=LombiqVisualStudioExtension.LombiqOrchardVisualStudioExtension) to add some useful utilities to your Visual Studio such as an error log watcher or a dependency injector. | ||
- Optionally install the [code snippets from the Orchard Dojo Library](https://orcharddojo.net/orchard-resources/CoreLibrary/Utilities/VisualStudioSnippets/) to quickly generate code in some common scenarios during module and theme development. | ||
|
||
### Docker | ||
|
||
- Run `docker run --name orchardcms orchardproject/orchardcore-cms-linux:latest` | ||
|
||
Docker images and parameters can be found at <https://hub.docker.com/u/orchardproject/> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now all part of the contribution docs and the test drive page (Docker). Here it wasn't useful, because cloning the full source is not how we want to people to start when building an OC app for themselves. I revised the getting started docs for this too.
src/docs/getting-started/README.md
Outdated
## Create an Orchard Core CMS application | ||
|
||
In Visual Studio, create a new empty .NET Core web application. Ex: `Cms.Web`. Do not check "Place solution and project in the same directory", because later when you create modules and themes you will want them to live alongside the web application within the solution. | ||
!!! note | ||
This guide follows a manual process so you can have a deeper understanding of what's happening. You can also use our [code generation templates](templates/README.md) for a quicker start if you create a brand new application. Check out [this guide](../guides/create-cms-application/README.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This overlaps with the create-cms-application
page. I wasn't sure how to solve this.
!!! warning | ||
Due to a bug in the current published version, the following `dotnet new` commands will require the extra argument `--orchard-version 1.8.2`. For instance, instead of typing `dotnet new occms` use `dotnet new occms --orchard-version 1.8.2` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have this bug anymore.
SECURITY.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brought this in line with what we actually do, and the contact info used in CONTRIBUTING.md previously.
.github/pull_request_template.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Tips on managing pull requests | ||
|
||
- [Here's a list](https://github.com/OrchardCMS/OrchardCore/pulls?q=is%3Apr+is%3Aopen+reviewed-by%3A%40me) of open PRs reviewed by you. Maybe check them because perhaps it's time to ping the authors since maybe they forgot to follow up? Or maybe you forgot to merge a PR? | ||
- Add the "don't merge" label on PRs that are ready for review, approved by you and/or others, but you asked more people for feedback before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In reality, contributors are currently unable to add any labels other than "Don't merge" label
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, so you can't actually add any label, strange. I added a note on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and as @hishamco mentioned earlier, it should be possible to specify a member of the review, but I can't do that here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's unfortunately just how GitHub works.
This pull request has merge conflicts. Please resolve those before requesting a review. |
…ibutions-docs # Conflicts: # src/docs/guides/contributing/contributing-documentation.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I briefly looked at this and it LGTM
Would you like to add anything, @hishamco? |
@Piedone please check my review then we can merge |
Co-authored-by: Hisham Bin Ateya <[email protected]>
Co-authored-by: Hisham Bin Ateya <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM let us merge :)
Thanks for the reviews! |
Part of #15029.
Note to reviewers: Also check out my comments below, that help understand the changes. Merge #15708 after this.