Przeglądaj źródła

Merge pull request #215 from VaclavElias/update-15-contributors-deployment-docs-improvements

Update 15 - Additional content improvements
Vaclav Elias 2 lat temu
rodzic
commit
51040f184f

+ 55 - 0
en/contributors/contribution-workflow.md

@@ -0,0 +1,55 @@
+# Contribution Workflow for Stride Projects
+
+This guide outlines the fundamental workflow for contributing to various Stride projects, including the Stride Engine, Stride website, and Stride documentation. Whether you're a seasoned contributor or new to the project, this workflow ensures your contributions are effectively integrated.
+
+## Overview
+
+The contribution process involves several key steps, from forking the repository to having your changes merged into the main project. This workflow is applicable to contributions to the Stride Engine, Stride website, and Stride documentation.
+
+``` mermaid
+%% Define styles
+
+%% Main Graph
+graph TB
+
+%% Nodes
+    Start[Start]
+    A[Fork the Repository]
+    B[Create Branch 'X']
+    C[Make Updates on Branch 'X']
+    D{Has the Upstream Changed?}
+    E[Sync/Merge Upstream to Forked Main Branch]
+    F[Sync/Merge Forked Main Branch to Branch 'X']
+    G[Test your updates]
+    H["Create a Pull Request (PR)"]
+    I[Wait for the PR to be Merged]
+    J[Address PR Feedback]
+    K[Sync/Merge Upstream to Your Forked Main Branch]
+    L{Do You Want to Make More Updates?}
+    Z[End]
+
+%% Edges
+    Start --> A --> B --> C --> D
+    D -->|Yes| E
+    D -->|No| G
+    E --> F --> G
+    G --> H --> I --> J --> K --> L
+    L -->|Yes| B
+    L -->|No| Z
+```
+
+## Detailed Steps
+
+1. **Fork the Repository**: Start by forking the repository of the project you wish to contribute to
+1. **Create a Branch**: Name your branch appropriately and start making your changes
+1. **Make and Test Updates**: Implement your changes and test them within your branch
+1. **Review and Create a PR**: Review your updates and create a Pull Request to the main repository
+1. **Address Feedback**: If there is any feedback on your PR, address it to improve your contribution
+1. **Final Merging**: Once your PR is approved, it will be merged into the main project
+
+## Best Practices
+1. Ensure your updates align with the project goals and guidelines
+1. Keep your fork synchronized with the main repository to avoid conflicts
+1. Engage with the Stride community for support and collaboration
+
+For more specific guidelines related to each project, refer to their respective contribution documentation.

+ 15 - 5
en/contributors/documentation/deployment-azure.md

@@ -9,7 +9,7 @@ This guide is crafted for individuals who already have access to the Azure subsc
 Deployments to Azure Web Apps are automated through GitHub Actions, forming an integral part of our Continuous Integration/Continuous Deployment (CI/CD) process. The CI/CD pipeline is configured to automatically trigger deployments upon merging changes into either the `staging` or `release` branches.
 
 > [!NOTE]
-> The deployment process outlined here is already established and running, hosted on Azure and sponsored by the .NET Foundation. This guide serves primarily as a reference for maintainers in the event that a new deployment setup is required. 
+> The deployment process outlined here is already established and running, hosted on Azure and sponsored by the .NET Foundation. This guide serves primarily as a reference for maintainers in the event that a new deployment setup is required.
 
 ### Setting up a new Azure Web App
 
@@ -86,7 +86,7 @@ The previous step will have added a GitHub Action to your repository, which migh
 - `stride-docs-release-fast-track-azure.yml`: Provides manual deployment to production, bypassing the creation of artifacts.
 - `stride-docs-staging-azure.yml`: Facilitates automatic deployment to [staging](https://stride-doc-staging.azurewebsites.net/latest/en/index.html) when changes are merged into the `staging` branch, and includes a manual trigger option.
 - `stride-docs-staging-fast-track-azure.yml`: Allows for manual deployment to staging, skipping the creation of artifacts.
-- `stride-website-wiki.yml`: Deploys automatically to the GitHub Wiki upon changes being pushed to the `wiki` folder, with a manual trigger feature also available.
+- `stride-website-wiki.yml`: Automatically deploys to the GitHub Wiki when changes are pushed to the `wiki` folder in the `master` branch, also includes a manual trigger feature
 
 ## Deployment to GitHub Pages
 
@@ -101,11 +101,21 @@ In your `stride-docs` repository:
 
 ### Run GitHub Action
 
-1. Go to **Actions**, select **Build Stride Web for GitHub Staging**
+1. Go to **Actions**, select **Build Stride Docs for GitHub Staging**
    - Click **Run workflow**; you may optionally select a branch
 2. Monitor the build logs while the action is in progress
 3. Upon successful build, a `gh-pages` branch will be created
-4. Navigate to **Settings** → **Pages**
+4. Navigate to **Settings** → **Pages** → **Branch** section
    - Choose the `gh-pages` branch with the root option and click **Save**
 5. After saving, an internal GitHub Action **pages build and deployment** is automatically created and triggered, deploying the content to the GitHub Pages website
-6. The website will be accessible at `https://[your-username].github.io/stride-docs`
+6. The website will be accessible at `https://[your-username].github.io/stride-docs/4.2/en`
+   - Change the version in the URL accordingly. You might see some JS errors, related to file expected in the root level.
+
+### Add Custom Domain
+
+Optionally, you can add also a custom domain. This should resolve JS url related errors.
+
+1. Go to **Settings** → **Pages** → **Custom domain**
+   - Enter your custom domain and follow the instructions for verification
+1. Upon saving, the **pages build and deployment** action is triggered again, adding a `CNAME` file containing your custom domain name to the `gh-pages` branch
+1. Your website should now be fully operational on your custom domain, for example, `https://stride-docs.vaclavelias.com/4.2/en/` is hosted on GitHub Pages

+ 1 - 1
en/contributors/documentation/major-release-workflow.md

@@ -12,7 +12,7 @@ Assuming the transition is from version `4.1` to `4.2`, and that the Stride sour
    - `name: 4.1 release notes` with `href: ReleaseNotes-4.1.md`
 1. In `en\docfx.json`
    - `_appFooter`: Increase the version number
-   - Change `TargetFramework` to the current framework version being used. Ensure to test this step locally
+   - Change `TargetFramework`in two locations to the current framework version being used. Ensure to test this step locally
 1. Edit `versions.json`
    - Under `versions`, add the new version `4.2`
 1. For GitHub Actions deployment update `*.yml` files in the `.github\workflows\` folder

+ 2 - 3
en/contributors/documentation/troubleshooting-and-faq.md

@@ -5,12 +5,11 @@
 
 # Known Issues
 
-1. **Sponsor Page - Widget Incompatibility with dark theme:** Widgets on the Sponsor Page currently do not support the dark theme. As a workaround, we can either fetch data from https://opencollective.com/stride3d/members/all.json and render it before deployment or make it dynamic. Both options would give us more control over the content and design, and allow for better compatibility with the dark theme in the future.
-1. **Search Page - Lack of pagination:** At present, the Search Page does not have pagination, which limits the maximum number of search results displayed to 100. To resolve this issue, we can implement a pager in JavaScript. This would enable users to navigate through multiple pages of search results, providing a more comprehensive view of the available content. 
+ToDo: Add any known issues
 
 # Common Issues and Solutions
 
-Any issue should be added to Stride Website [GitHub issues](https://github.com/stride3d/stride-website/issues) so it can be tracked and elaborated by the community.
+Any issue should be added to Stride Docs [GitHub issues](https://github.com/stride3d/stride-docs/issues) so it can be tracked and elaborated by the community.
 
 # Frequently Asked Questions
 

+ 2 - 0
en/contributors/toc.yml

@@ -6,6 +6,8 @@ items:
   expanded: true
 - name: 💸 Donate
   href: donate.md
+- name: 🤝 Contribution Workflow
+  href: contribution-workflow.md
 - name: 🛠️ Contribute to the engine
   expanded: false
   href: engine/index.md

+ 1 - 1
en/contributors/website/deployment-azure.md

@@ -9,7 +9,7 @@ This guide is crafted for individuals who already have access to the Azure subsc
 Deployments to Azure Web Apps are automated through GitHub Actions, forming an integral part of our Continuous Integration/Continuous Deployment (CI/CD) process. The CI/CD pipeline is configured to automatically trigger deployments upon merging changes into either the `staging` or `release` branches.
 
 > [!NOTE]
-> The deployment process outlined here is already established and running, hosted on Azure and sponsored by the .NET Foundation. This guide serves primarily as a reference for maintainers in the event that a new deployment setup is required. 
+> The deployment process outlined here is already established and running, hosted on Azure and sponsored by the .NET Foundation. This guide serves primarily as a reference for maintainers in the event that a new deployment setup is required.
 
 ### Setting up a new Azure Web App