fix more link and ci/cd

This commit is contained in:
SoftFever
2025-11-25 19:17:22 +08:00
parent 80b6c285de
commit 0c30047ae9
3 changed files with 8 additions and 17 deletions

View File

@@ -26,10 +26,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v5
- name: debug info
run: |
cat ./Home.md
# Publish content to wiki
- name: Pull content from wiki
working-directory: ${{ github.workspace }}/..
@@ -37,14 +33,9 @@ jobs:
git config --global user.name "$USER_NAME"
git config --global user.email "$USER_NAME"@users.noreply.github.com
git clone https://"$USER_TOKEN"@github.com/"$OWNER"/"$REPOSITORY_NAME".wiki.git tmp_wiki
echo "---debug info before rsync---"
cat ./tmp_wiki/Home.md
echo "---github workspace---"
echo ${{ github.workspace }}
rsync -av --delete ${{ github.workspace }} tmp_wiki/ --exclude .git
rsync -av --delete ${{ github.workspace }}/ tmp_wiki/ --exclude .git
cd tmp_wiki
echo "---debug info after rsync---"
cat ./Home.md
git add .
git commit -m "Updated Wiki content"
git push origin master

View File

@@ -53,7 +53,7 @@ Each section can have multiple pages covering specific topics. For example, the
GitHub Wiki uses file names as page identifiers. To link to a page, use the file name without the `.md` extension. If a file lives in a subdirectory, **do not include the subdirectory** in the link; link directly to the file name from the Home page.
For example, if you add `doc/calibration/flow-rate-calib.md`, link it like this:
For example, if you add `calibration/flow-rate-calib.md`, link it like this:
```markdown
[Flow Rate Calibration](flow-rate-calib)
@@ -80,7 +80,7 @@ When creating new pages, follow these file-naming conventions:
- Use descriptive names that reflect the page's content.
- Use kebab-case for filenames (e.g.: `How-to-wiki.md`).
- If a page belongs to a section, include a suffix that clarifies it (for example, calibration pages should end with `-calib.md`, e.g. `flow-rate-calib.md`).
- Place files in the appropriate subdirectory when applicable (e.g.: `doc/calibration/` for calibration-related content).
- Place files in the appropriate subdirectory when applicable (e.g.: `calibration/` for calibration-related content).
## Orca to Wiki Redirection
@@ -152,8 +152,8 @@ Images are encouraged to enhance the clarity and quality of the wiki content. Th
### Image Placement
- General images should be placed in the `doc/images/` directory.
- Section-specific images should be stored in their corresponding subdirectories (e.g., `doc/images/calibration/` for calibration content).
- General images should be placed in the `images/` directory.
- Section-specific images should be stored in their corresponding subdirectories (e.g., `images/calibration/` for calibration content).
> [!TIP]
> You can use `\resources\images` images used in the GUI.
@@ -178,13 +178,13 @@ Format = `![`filename`](` + Base URL + filename.extension + Raw tag + `)`
#### Examples
- For an image in `doc/images/` named `calibration.png`:
- For an image in `images/` named `calibration.png`:
```markdown
![calibration](https://github.com/OrcaSlicer/OrcaSlicer_WIKI/blob/main/images/calibration.png?raw=true)
```
- For an image in a subdirectory like `doc/images/GUI/combobox.png`:
- For an image in a subdirectory like `images/GUI/combobox.png`:
```markdown
![combobox](https://github.com/OrcaSlicer/OrcaSlicer_WIKI/blob/main/images/GUI/combobox.png?raw=true)

View File

@@ -73,7 +73,7 @@ Layer time variability refers to the differences in time it takes to print each
> This **WILL NOT** be the same for all models and only serves as a standard guideline.
> [!TIP]
> You can see how this analysis was made in [infill-analysis](https://github.com/OrcaSlicer/OrcaSlicer/tree/main/doc/print_settings/strength/infill-analysis) folder:
> You can see how this analysis was made in [infill-analysis](https://github.com/OrcaSlicer/OrcaSlicer_WIKI/blob/main/print_settings/strength/infill-analysis) folder:
> - [Infill calculator Project](https://github.com/OrcaSlicer/OrcaSlicer_WIKI/blob/main/print_settings/strength/infill-analysis/infill_calculator.3mf?raw=true) to generate the gcode files and images.
> - [infill_desc_calculator.xlsx](https://github.com/OrcaSlicer/OrcaSlicer_WIKI/blob/main/print_settings/strength/infill-analysis/infill_desc_calculator.xlsx?raw=true) used to calculate the values above.
> - Time, and material usage where simulated with the same [Klipper Estimator](https://github.com/Annex-Engineering/klipper_estimator) values to maintain consistency.