4.2 KiB
Contribution Guide
Contribute Your Code
Setup Snap.Hutao Project
- Download and install Visual Studio 2022 Community
- Open Visual Studio Installer to complete Visual Studio installation
- You need to install
.NET desktop development,Desktop development with C++andUniversal Windows Platform developmentcomponents
- You need to install
- Install
Single-project MSIX Packaging Tools for VS 2022provided by Microsoft in Visual Studio marketplace - Use git to clone the project
https://github.com/DGP-Studio/Snap.Hutao.gitto your local device - Switch git branch to
develop - Open project solution with your Visual Studio and then you are ready to go
Start Pull Request
- All code-related changes from authors' own branches are only allowed be merged to
developbranch - Please use keywords to link your PR or commits with issues, so issues can be automatically closed once commits are merged into
mainbranch.
Test Binary Package
Once the code in updated in develop and main branches, an Azure Pipeline CI script will build the latest code to Snap Hutao Alpha package. Once the package is built, it will be released on GitHub Release page as a pre-released package.
You need to install Snap.Hutao.CI.cer certificate to your local machine, and then install the msix package in the release.
*If the latest release does not contains attached file, that means package is still in uploading process.
Start New Issue
To help users solve problems faster and increase developers' efficiency in solving problems, Snap Hutao provides detailed documentation to explain common problems and issue templates to guide users to report program problems by submitting issues.
Before submitting a new issue, you should check the following pages:
- FAQ Document
- Common Program Exceptions Document
- Current Opened BUG Report Issues
When starting a new issue, please use the issue templates:
- Describe your issue in details to help developers to reproduce the issue
- Your description of reproduction should be a step-by-step story
- If your issue is about program crash
- Remember to provide your Device ID
- Check Windows Event Viewer, and attach associated
.NET Errordetails in the issue body
Document Modification
Snap Hutao Document site is stored in repository DGP-Studio/Snap.Hutao.Docs, you can process the following steps to test the site in your local device:
- Download and install NodeJS 18
- Clone the repository
- Run
npm installin the root directory of the document project - Run
npm run docs:devto start test on 8080 port
Localization
Snap.Hutao.Docs project structure is designed as multiple languages site. Each language has its independent folder under docs directory.
If you wish to add another language document, you can start an issue in document repository to ask developer to setup an environment for you, or you can process the following steps by yourself:
- make a copy of
zhfolder, rename the new folder as the new language's code - Start your translation work in the new language folder
- In
docs/.vuepress/sidebarfolder, duplicatezh.tsfile- Rename the file to
{language_code}.ts - In the line 4, change
/zh/to/{language_code}/ - Translate all
textfield
- Rename the file to
- In
docs/.vuepress/navbarfolder, duplicatezh.tsfile- Rename the file to
{language_code}.ts - Replace all
/zh/to/{language_code}/ - Translate all
textfield
- Rename the file to
- In
docs/.vuepress/config.tsfile, add your language information inlocalesandplugins/docsearchPlugin/localesdictionary - In
docs/.vuepress/theme.tsfile, add your language information inlocalesdictionary