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

renpy-engine-8.2.0; update README.md #4836

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added RenPy_Engine.tgz
Binary file not shown.
150 changes: 132 additions & 18 deletions docsets/RenPy_Engine/README.md
Expand Up @@ -5,41 +5,155 @@ Renpy Engine Docset

Generated by [scillidan](https://github.com/scillidan) with [doc2dash](https://github.com/hynek/doc2dash).

## Environment
With `8.2.0` version, `make html` failed on Windows 10, so I make `html` on Ubuntu in [VirtualBox](https://www.virtualbox.org/). There will be some changes in Ubuntu, but you can still refer to the following manul.

Windows10

## Install
## Install requirements

```sh
scoop install make
scoop install python39
pip install sphinx==4.4.0 sphinx_rtd_theme==1.1.1 sphinx_rtd_dark_mode future
pip install doc2dash
scoop install trash // Optional
scoop install make
scoop install trash
```

## Start
## Make docset

Download stable-version source from https://github.com/renpy/renpy/releases. Decompress it, then:
Download stable-version from https://github.com/renpy/renpy/releases. Decompress it, then:

```sh
cd renpy/sphinx
python39 -m venv venv
venv\Scripts\activate.bat
pip install sphinx==5.0.0 sphinx_rtd_theme sphinx_rtd_dark_mode future
```

Build document:

```sh
cd renpy
cd sphinx
make html
```

Convert to docset, and name a shorter keyword for search. But don't use abbreviation, see [Docset requirements](https://github.com/Kapeli/Dash-User-Contributions/wiki/Docset-Contribution-Checklist#docset-requirements):

```sh
doc2dash --name renpy -f ./build/html
move renpy.docset RenPy_Engine.docset
wget https://raw.githubusercontent.com/Kapeli/Dash-User-Contributions/master/docsets/RenPy_Engine/icon.png -O RenPy_Engine.docset/icon.png
wget https://raw.githubusercontent.com/Kapeli/Dash-User-Contributions/master/docsets/RenPy_Engine/icon@2x.png -O RenPy_Engine.docset/icon@2x.png
```

Still use current name `dirname`:

```sh
mv renpy.docset RenPy_Engine.docset
```

And in `RenPy_Engine.docset\Contents\Info.plist`:

```
<key>CFBundleName</key>
<string>RenPy Engine</string>
```

If you will use multiple versions, specify the version number:

```
<key>CFBundleName</key>
<string>RenPy 8.1.3</string>
```

If you have `.svg`, `get `svg2png.exe` from [SVG to PNG converter](https://github.com/v0lt/svg2png).

```sh
svg2png -w 16 Input.svg
svg2png -w 32 Input.svg
```

Put `icon.png`, `icon@2x.png` in `RenPy_Engine.docset`.

Move `RenPy_Engine.docset` into storage directory of Zeal.

## PR note

Refer to [Dash-User-Contributions](https://github.com/Kapeli/Dash-User-Contributions) and [Contributions](https://github.com/MarcDiethelm/contributing).

Fork https://github.com/Kapeli/Dash-User-Contributions.

```sh
git clone https://github.com/YourName/Dash-User-Contributions
cd Dash-User-Contributions
```

Sync to `upstream`:

```sh
git pull
```

Create a new branch:

```sh
git checkout -b "renpy-engine-x.x.x"
```

For contribute to https://github.com/Kapeli/Dash-User-Contributions, compress directory to `.tgz`:

```sh
tar --exclude='.DS_Store' -cvzf RenPy_Engine.tgz RenPy_Engine.docset
```

Put `RenPy_Engine.tgz` into `...\Dash-User-Contributions\docsets\RenPy_Engine\versions\x.x.x`.

Update `...\Dash-User-Contributions\docsets\RenPy_Engine\docset.json`:

```sh
{
"name": "RenPy_Engine",
"version": "x.x.x",
"archive": "RenPy_Engine.tgz",
"author": {
"name": "...",
"link": "..."
},
"aliases": ["RenPy","Ren'Py"],
"specific_versions": [
{
"version": "x.x.x",
"archive": "versions/x.x.x/RenPy_Engine.tgz"
},
{
"version": "8.1.3",
"archive": "versions/8.1.3/RenPy_Engine.tgz"
}
...
]
}
```

Push to your fork:

```sh
git add .
git commit -m "renpy-engine-x.x.x"
git push origin
```

Fork Repository → Sync fork → Create Pull requests → Waiting check and merge ...

If PR be merge, re-sync to `upstream`,

```sh
git branch -d renpy-engine-x.x.x
git push origin --delete renpy-engine-x.x.x
```

Clear file:

```sh
trash RenPy_Engine.docset
move RenPy_Engine.tgz .../Dash-User-Contributions/docsets/RenPy_Engine/RenPy_Engine.tgz
```

## Feed
## Add feed

Zeal > Tools > Docsets > Add feed:
Zeal Tools Docsets Add feed:

```
dash-feed://http%3A%2F%2Fraw.githubusercontent.com%2Fscillidan%2Frepo_cos%2Fmain%2Fdocset%2FRenPy_Engine.xml
dash-feed://http%3A%2F%2Fraw.githubusercontent.com%2Fscillidan%2Fpublic_source%2Fmain%2FZeal%2FRenPy_Engine.xml
```
6 changes: 0 additions & 6 deletions docsets/RenPy_Engine/RenPy_Engine.tgz.txt

This file was deleted.

10 changes: 8 additions & 2 deletions docsets/RenPy_Engine/docset.json
@@ -1,10 +1,16 @@
{
"name": "RenPy_Engine",
"version": "8.1.3",
"version": "8.2.0",
"archive": "RenPy_Engine.tgz",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to update the main archive as well, not just the specific version one.

Copy link
Contributor Author

@scillidan scillidan Feb 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the archive in ./versions/8.2.0. I checked the doc's version. It is indeed 8.2.0. But there is only one version, should I move it to ./, and remove the content of specific_versions in docset.json?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to have the archive at these 2 locations:

docsets/RenPy_Engine/RenPy_Engine.tgz
docsets/RenPy_Engine/versions/8.2.0/RenPy_Engine.tgz

Specific version archives are completely separate from the main version archive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I see. That the major version needs to be put in docsets/RenPy_Engine/.

"author": {
"name": "scillidan",
"link": "https://github.com/Kapeli/Dash-User-Contributions/tree/master/docsets/RenPy_Engine"
},
"aliases": ["RenPy","Ren'Py"]
"aliases": ["RenPy","Ren'Py"],
"specific_versions": [
{
"version": "8.2.0",
"archive": "versions/8.2.0/RenPy_Engine.tgz"
}
]
}
Binary file not shown.