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

[Docs 02] Auto dev-docs & more #2481

Merged
merged 84 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
cb6b5e5
Compile Winutil
MyDrift-user Jun 25, 2024
af3a8e9
pre-Releases (#1)
MyDrift-user Jun 25, 2024
9c46e5e
Create release-drafter.yml
MyDrift-user Jun 25, 2024
608d353
Update release-drafter.yml
MyDrift-user Jun 25, 2024
6d700fc
Update pre-release.yaml
MyDrift-user Jun 25, 2024
a61d896
Update pre-release.yaml
MyDrift-user Jun 25, 2024
420ff09
Update pre-release.yaml
MyDrift-user Jun 25, 2024
f90ec44
Update pre-release.yaml
MyDrift-user Jun 25, 2024
b313cd6
Update pre-release.yaml
MyDrift-user Jun 25, 2024
dea04c8
Update pre-release.yaml
MyDrift-user Jun 25, 2024
f39f38c
Update pre-release.yaml
MyDrift-user Jun 25, 2024
229f3cb
Update pre-release.yaml
MyDrift-user Jun 25, 2024
8fd1f2d
Update pre-release.yaml
MyDrift-user Jun 25, 2024
cbf7ee6
Update release-drafter.yml
MyDrift-user Jun 25, 2024
85d67ea
Update pre-release.yaml
MyDrift-user Jun 25, 2024
a2b83f9
Update release-drafter.yml
MyDrift-user Jun 25, 2024
6360b8a
Update pre-release.yaml
MyDrift-user Jun 25, 2024
0bb683d
Update release-drafter.yml
MyDrift-user Jun 25, 2024
5529a7b
Update release-drafter.yml
MyDrift-user Jun 25, 2024
9841e0c
Update pre-release.yaml
MyDrift-user Jun 25, 2024
db5f832
Update pre-release.yaml
MyDrift-user Jun 25, 2024
394ba54
Update release-drafter.yml
MyDrift-user Jun 25, 2024
e7af81f
Update release-drafter.yml
MyDrift-user Jun 25, 2024
984e8df
Update release.yaml
MyDrift-user Jun 25, 2024
750948c
Update release-drafter.yml
MyDrift-user Jun 25, 2024
6034226
Update release-drafter.yml
MyDrift-user Jun 25, 2024
47ff7cc
Update pre-release.yaml
MyDrift-user Jun 25, 2024
9f32396
Merge branch 'ChrisTitusTech:main' into main
MyDrift-user Jun 27, 2024
7ebde58
Compile Winutil
MyDrift-user Jun 27, 2024
84af172
fixed end task with right click
MyDrift-user Jul 11, 2024
e0b0fc2
Compile Winutil
MyDrift-user Jul 11, 2024
1243f80
code generator & compile integration
MyDrift-user Jul 28, 2024
e5ce18a
Compile Winutil
MyDrift-user Jul 28, 2024
d9b0a55
finish
MyDrift-user Jul 28, 2024
48c5688
Merge branch 'auto-devdocs' of https://github.com/MyDrift-user/winuti…
MyDrift-user Jul 28, 2024
6d4c279
oops, remove dublicates
MyDrift-user Jul 28, 2024
8f1abe6
undo winutil.ps1
MyDrift-user Jul 28, 2024
97cfab0
remove prefixes
MyDrift-user Jul 28, 2024
5ff4d72
fixes
MyDrift-user Jul 28, 2024
94c9526
fix spellin mistake
MyDrift-user Jul 28, 2024
73a3cc2
remove unneccesary whitespaces
MyDrift-user Jul 28, 2024
9fa48d1
rewrite prefix removal into one line definition
MyDrift-user Jul 28, 2024
6dabdfb
added taskscheduler support
MyDrift-user Jul 28, 2024
08ae842
add support for function calling
MyDrift-user Jul 29, 2024
cf5b756
content instead of displayname
MyDrift-user Jul 30, 2024
229e16d
add last modified date
MyDrift-user Jul 30, 2024
a8fddd2
contributing + docs generator
MyDrift-user Aug 3, 2024
b8d7786
Merge branch 'ChrisTitusTech:main' into auto-devdocs
MyDrift-user Aug 3, 2024
7e15eb8
Use HashSet for processedFunctions
MyDrift-user Aug 3, 2024
b45d755
Merge branch 'auto-devdocs' of https://github.com/MyDrift-user/winuti…
MyDrift-user Aug 3, 2024
52bdc08
follow github standards
MyDrift-user Aug 3, 2024
ba519d9
small fixes
MyDrift-user Aug 3, 2024
c1e023d
change color from teal to blue in light mode
MyDrift-user Aug 3, 2024
b117429
add links to tweaks
MyDrift-user Aug 3, 2024
b8d7fba
add archiving feature to autodocs
MyDrift-user Aug 3, 2024
d915696
administrative
MyDrift-user Aug 4, 2024
7bc6903
small fixes
MyDrift-user Aug 4, 2024
f60e491
fix links
MyDrift-user Aug 4, 2024
c105525
undo link bc of bugs
MyDrift-user Aug 4, 2024
ba242c9
add progress bar to script
MyDrift-user Aug 4, 2024
630afde
Simple improvements to 'auto-devdocs' branch (#3)
og-mrk Aug 4, 2024
a687a43
rerun script
MyDrift-user Aug 4, 2024
c19642b
und workflows & rearrange navigation items
MyDrift-user Aug 4, 2024
79b34e7
layer out itemname cutout
MyDrift-user Aug 4, 2024
886b9bb
rework links & temp removal of archivation
MyDrift-user Aug 5, 2024
beef772
fix adding link in json root
MyDrift-user Aug 5, 2024
b34f763
fix json generation
MyDrift-user Aug 5, 2024
9940c07
add features to auto md docs
MyDrift-user Aug 5, 2024
d2322a0
add minify plugin
MyDrift-user Aug 5, 2024
306da6e
regex hotfix
MyDrift-user Aug 5, 2024
3c841c3
refractor
MyDrift-user Aug 5, 2024
bfa827e
add changelog to about section
MyDrift-user Aug 5, 2024
e9c049f
undo changelog
MyDrift-user Aug 5, 2024
adb6c3c
Cleanup 'devdocs-generator.ps1' - Implement Zig Multiline String Feat…
og-mrk Aug 6, 2024
37e4a01
run script
MyDrift-user Aug 6, 2024
36dcb66
Merge branch 'main' into auto-devdocs
MyDrift-user Aug 6, 2024
47a9f20
Merge branch 'main' into auto-devdocs
MyDrift-user Aug 6, 2024
c22f844
run script
MyDrift-user Aug 6, 2024
c1210c5
Fix 'itemnametocut' RegEx in 'devdocs-generator.ps1' (#5)
og-mrk Aug 6, 2024
cbcc93c
rerun script
MyDrift-user Aug 7, 2024
dd932ed
rework nav + remove code of conduct
MyDrift-user Aug 7, 2024
569bd8c
undo workflow changes
MyDrift-user Aug 7, 2024
eb857bc
run script
MyDrift-user Aug 7, 2024
5c154e5
remove changelog
MyDrift-user Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
- name: Compile project
shell: pwsh
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
./Compile.ps1
./devdocs-generator.ps1
continue-on-error: false # Directly fail the job on error, removing the need for a separate check
- name: Create and import code signing certificate
shell: pwsh
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ jobs:
path: .cache
- run: pip install mkdocs-material
- run: pip install pillow cairosvg
- run: pip install mkdocs-awesome-pages-plugin
- run: pip install mkdocs-git-revision-date-localized-plugin
- run: mkdocs gh-deploy --force
65 changes: 65 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
education, socio-economic status, nationality, personal appearance, race,
religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, documentation edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include posting via an official social media
account, or acting as an appointed representative at an online or offline event.
Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported. All complaints will be reviewed and investigated and will result
in a response that is deemed necessary and appropriate to the circumstances.
The project team is obligated to maintain confidentiality with regard to the
reporter of an incident. Further details of specific enforcement policies may
be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
106 changes: 106 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# 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**
```ps1
irm christitus.com/windev | iex
```

!!! bug "Keep in mind"

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.

!!! warning "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
graph LR
  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];
  E --> F[Push Branch];
  H -->|No| J[Fix Issues];
  F --> K[Create Pull Request];
  K --> L[Fill out PR template];
  J --> G;
```
!!! info

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.
![Fork Image](assets/Fork-Button-Dark.png#only-dark)
![FOrk Image](assets/Fork-Button-Light.png#only-light)

### 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`
* ![Compile](assets/Compile.png)
* 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:
- ![Push Commit Image](assets/Discard-GHD.png)
* Now, commit your changes once you are happy with the result.
![Commit Image](assets/Commit-GHD.png)
* Push the changes to upload them to your fork on github.com.
![Push Commit Image](assets/Push-Commit.png)

### 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.
33 changes: 23 additions & 10 deletions config/feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
{
"WPFFeaturesdotnet": {
"Content": "All .Net Framework (2,3,4)",
"Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a010_",
Expand All @@ -16,6 +17,7 @@
"WPFFeatureshyperv": {
"Content": "HyperV Virtualization",
"Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a011_",
Expand All @@ -36,6 +38,7 @@
"WPFFeatureslegacymedia": {
"Content": "Legacy Media (WMP, DirectPlay)",
"Description": "Enables legacy programs from previous versions of windows",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a012_",
Expand All @@ -49,9 +52,10 @@

]
},
"WPFFeaturewsl": {
"WPFFeatureswsl": {
"Content": "Windows Subsystem for Linux",
"Description": "Windows Subsystem for Linux is an optional feature of Windows that allows Linux programs to run natively on Windows without the need for a separate virtual machine or dual booting.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a020_",
Expand All @@ -63,9 +67,10 @@

]
},
"WPFFeaturenfs": {
"WPFFeaturesnfs": {
"Content": "NFS - Network File System",
"Description": "Network File System (NFS) is a mechanism for storing files on a network.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a014_",
Expand All @@ -82,9 +87,10 @@
"nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i"
]
},
"WPFFeatureEnableSearchSuggestions": {
"WPFFeaturesEnableSearchSuggestions": {
"Content": "Enable Search Box Web Suggestions in Registry(explorer restart)",
"Description": "Enables web suggestions when searching using Windows Search.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a015_",
Expand All @@ -100,9 +106,10 @@
"
]
},
"WPFFeatureDisableSearchSuggestions": {
"WPFFeaturesDisableSearchSuggestions": {
"Content": "Disable Search Box Web Suggestions in Registry(explorer restart)",
"Description": "Disables web suggestions when searching using Windows Search.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a016_",
Expand All @@ -118,9 +125,10 @@
"
]
},
"WPFFeatureRegBackup": {
"WPFFeaturesRegBackup": {
"Content": "Enable Daily Registry Backup Task 12.30am",
"Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a017_",
Expand All @@ -136,9 +144,10 @@
"
]
},
"WPFFeatureEnableLegacyRecovery": {
"WPFFeaturesEnableLegacyRecovery": {
"Content": "Enable Legacy F8 Boot Recovery",
"Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a018_",
Expand All @@ -154,9 +163,10 @@
"
]
},
"WPFFeatureDisableLegacyRecovery": {
"WPFFeaturesDisableLegacyRecovery": {
"Content": "Disable Legacy F8 Boot Recovery",
"Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user",
"category": "Features",
"panel": "1",
"Order": "a019_",
Expand All @@ -172,14 +182,14 @@
"
]
},
"WPFFeaturesandbox": {
"WPFFeaturessandbox": {
"Content": "Windows Sandbox",
"category": "Features",
"panel": "1",
"Order": "a021_",
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation."
},
"WPFFeatureInstall": {
"WPFFeaturesInstall": {
"Content": "Install Features",
"category": "Features",
"panel": "1",
Expand Down Expand Up @@ -285,3 +295,6 @@
"ButtonWidth": "300"
}
}



Loading