-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Move docs over. #3760
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
Merged
Merged
Move docs over. #3760
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
05bd38d
Docs
Real-MullaC 48dc558
Update docs.yaml
Real-MullaC 1ab00b6
Merge branch 'ChrisTitusTech:main' into main
Real-MullaC e255c21
Delete docs/LICENCE
Real-MullaC 8e21152
Delete docs/README.md
Real-MullaC c9abf33
Update module path in go.mod
Real-MullaC 569a8db
Merge branch 'main' into main
Real-MullaC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| # Sample workflow for building and deploying a Hugo site to GitHub Pages | ||
| name: Deploy Hugo site to Pages | ||
|
|
||
| on: | ||
| # Runs on pushes targeting the default branch | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'docs/**' # ONLY triggers if files in the 'docs' folder are changed | ||
|
|
||
| # Allows you to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
| # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
| concurrency: | ||
| group: "pages" | ||
| cancel-in-progress: false | ||
|
|
||
| # Default to bash | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
|
|
||
| jobs: | ||
| # Build job | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| HUGO_VERSION: 0.145.0 | ||
| HUGO_ENVIRONMENT: production | ||
| TZ: America/Chicago | ||
| steps: | ||
| - name: Install Hugo CLI | ||
| run: | | ||
| wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | ||
| && sudo dpkg -i ${{ runner.temp }}/hugo.deb | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| fetch-depth: 0 | ||
| - name: Setup Pages | ||
| id: pages | ||
| uses: actions/configure-pages@v5 | ||
| - name: Install Node.js dependencies | ||
| run: "cd docs && [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" | ||
| - name: Cache Restore | ||
| id: cache-restore | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: | | ||
| ${{ runner.temp }}/hugo_cache | ||
| key: hugo-${{ github.run_id }} | ||
| restore-keys: | ||
| hugo- | ||
| - name: Build with Hugo | ||
| run: | | ||
| hugo \ | ||
| --gc \ | ||
| --minify \ | ||
| --source docs \ | ||
| --baseURL "${{ steps.pages.outputs.base_url }}/" \ | ||
| --cacheDir "${{ runner.temp }}/hugo_cache" | ||
| - name: Cache Save | ||
| id: cache-save | ||
| uses: actions/cache/save@v4 | ||
| with: | ||
| path: | | ||
| ${{ runner.temp }}/hugo_cache | ||
| key: ${{ steps.cache-restore.outputs.cache-primary-key }} | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@v3 | ||
| with: | ||
| path: ./docs/public | ||
|
|
||
| deploy: | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2024 Chris Titus Docs | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Winutil Documentation | ||
|
|
||
| [](https://github.com/ChrisTitusTech/Winutil/releases/latest) | ||
|  | ||
| [](https://discord.gg/RUbZUZyByQ) | ||
|
|
||
| Welcome to the official documentation for Winutil, your go-to utility for optimizing and managing your Windows environment. Whether you’re an IT professional, power user, or regular user, Winutil provides a comprehensive set of tools to enhance your Windows experience. | ||
|
|
||
| ## Running the latest release of Winutil | ||
|
|
||
| * You will first need to start a Powershell Terminal **as Admin**. | ||
| * Now you can run the following command: | ||
| ```ps1 | ||
| irm "https://christitus.com/win" | iex | ||
| ``` | ||
|
|
||
| ## Contributing to the Docs | ||
|
|
||
| Winutil Docs uses the [Hugo Hextra Theme](https://imfing.github.io/hextra/), consider reading their [documentation](https://imfing.github.io/hextra/docs/guide/) before contributing to the Winutil Docs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| date: '{{ .Date }}' | ||
| draft: true | ||
| title: '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
| --- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| --- | ||
| toc: true | ||
| --- | ||
|
|
||
| # How to Contribute? | ||
|
|
||
| ## Testing | ||
|
|
||
| * Test the latest changes to Winutil by running the pre-release and reporting issues you are encountering to help us continually improve Winutil! | ||
|
|
||
| #### **Run the latest pre-release** | ||
| ``` | ||
| irm https://christitus.com/windev | iex | ||
| ``` | ||
|
|
||
| > [!WARNING] | ||
| > This is a pre-release and should be treated as such. It exists for developers to test the utility and report or fix bugs before they get added to the stable release. Don't use it in production! | ||
|
|
||
| ## Issues | ||
|
|
||
| * If you encounter any challenges or problems with the script, I kindly request that you submit them via the "Issues" tab on the GitHub repository. By filling out the provided template, you can provide specific details about the issue, allowing me (and others in the community) to promptly address any bugs or consider feature requests. | ||
|
|
||
| ## Contribute Code | ||
|
|
||
| * Pull requests are now handled directly on the **MAIN branch**. This was done since we can now select specific releases to launch via releases in GitHub. | ||
|
|
||
| * If you're doing code changes, then you can submit a PR to `main` branch, but I am very selective about these. | ||
|
|
||
| > [!IMPORTANT] | ||
| > Do not use a code formatter, make massive amounts of line changes, or make multiple feature changes. EACH FEATURE CHANGE SHOULD BE IT'S OWN PULL REQUEST! | ||
|
|
||
| * When creating pull requests, it is essential to thoroughly document all changes made. This includes, but is not limited to, documenting any additions made to the `tweaks` section and corresponding `undo tweak`, so users are able to remove the newly added tweaks if necessary, and comprehensive documentation is required for all code changes. Document your changes and briefly explain why you made your changes in your Pull Request Description. Failure to adhere to this format may result in the denial of the pull request. Additionally, any code lacking sufficient documentation may also be denied. | ||
|
|
||
| * By following these guidelines, we can maintain a high standard of quality and ensure that the codebase remains organized and well-documented. | ||
|
|
||
| > [!NOTE] | ||
| > When creating a function, please include "WPF" or "Winutil" in the file name so it can be loaded into the runspace. | ||
|
|
||
| ## Walk through | ||
|
|
||
| * This is a guide for beginners. If you are still having issues, look at the following official GitHub documentation: | ||
| * [Commit through WEB](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits) | ||
| * [Commit through GitHub Desktop](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop#about-commits) | ||
| * [Create a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) | ||
|
|
||
|
|
||
| ### Overview | ||
|
|
||
| ``` mermaid | ||
| %%{init: {"flowchart": {"curve": "cardinal"}} }%% | ||
| graph TD | ||
| A[Fork Project] --> B[Clone Repository]; | ||
| B --> C[Create New Branch]; | ||
| C --> D[Make Changes]; | ||
| D --> G[Test Changes]; | ||
| G --> H{Tests Passed?}; | ||
| H -->|Yes| E[Commit Changes]; | ||
| H -->|No| J[Fix Issues]; | ||
| J --> G; | ||
| E --> F[Push Branch]; | ||
| F --> K[Create Pull Request]; | ||
| K --> L[Fill out PR template]; | ||
| classDef default stroke:#333,stroke-width:4px,font-size:12pt; | ||
| ``` | ||
| > [!NOTE] | ||
| > This is a diagram to guide you through the process. It may vary depending on the type of change you're making. | ||
|
|
||
| ### Fork the Repo | ||
| * Fork the Winutil Repository [here](https://github.com/ChrisTitusTech/Winutil) to create a copy that will be available in your repository list. | ||
|
|
||
| {{< image src="images/Fork-Button" alt="Fork Image" >}} | ||
|
|
||
| ### Clone the Fork | ||
|
|
||
| > [!TIP] | ||
| > While you can make your changes directly through the Web, we recommend cloning the repo to your device using the application GitHub Desktop (available in Winutil) to test your fork easily. | ||
|
|
||
| * Install GitHub Desktop if it is not already installed. | ||
| * Log in using the same GitHub account you used to fork Winutil. | ||
| * Choose the fork under "Your Repositories" and press "clone {repo name}" | ||
| * Create a new branch and name it something relatable to your changes. | ||
|
|
||
| * Now you can modify Winutil to your liking using your preferred text editor. | ||
|
|
||
|
|
||
| ### Testing your changes | ||
|
|
||
| * To test to see if your changes work as intended run following commands in a powershell teminal as admin: | ||
|
|
||
| * Change the directory where you are running the commands to the forked project. | ||
| * `cd {path to the folder with the compile.ps1}` | ||
| * Run the following command to compile and run Winutil: | ||
| * `.\Compile.ps1 -run` | ||
|
|
||
| {{< image src="images/Compile" alt="Compile" >}} | ||
|
|
||
| * After seeing that your changes work properly, feel free to commit the changes to the repository and make a PR. For help on that, follow the documentation below. | ||
|
|
||
| ### Committing the changes | ||
| * Before committing your changes, please discard changes made to the `Winutil.ps1` file, like the following: | ||
|
|
||
| {{< image src="images/Discard-GHD" alt="Push Commit Image" >}} | ||
|
|
||
| * Now, commit your changes once you are happy with the result. | ||
|
|
||
| {{< image src="images/Commit-GHD" alt="Commit Image" >}} | ||
|
|
||
| * Push the changes to upload them to your fork on github.com. | ||
|
|
||
| {{< image src="images/Push-Commit" alt="Push Commit Image" >}} | ||
|
|
||
| ### Making a PR | ||
| * To make a PR on your repo under a new branch linking to the main branch, a button will show and say Preview and Create pull request. Click that button and fill in all the information that is provided on the template. Once all the information is filled in correctly, check your PR to make sure there is not a Winutil.ps1 file attached to the PR. Once everything is good, make the PR and wait for Chris (the maintainer) to accept or deny your PR. Once it is accepted by Chris, you will be able to see your changes in the "/windev" build. | ||
| * If you do not see your feature in the main "/win" build, that is fine. All new changes go into the /windev build to make sure everything is working OK before going fully public. | ||
| * Congratulations! You just submitted your first PR. Thank you so much for contributing to Winutil. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.