-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 0.20.0: Multiple Documentation Versions (#73)
* Swift 5.0.3, 5.1.3, remove redundancies * Update doc deployment to use new gh-pages structure (#71) * Automatically add docs to new directory; update redirect for latest version This cannot be run right now, because gh-pages has not been updated for this format. I have the changes necessary, but there's a PR already to master and I want this to have its own PR. * Get and use version * Merge changes from 'development' into docs This allows the CHANGELOG to be updated. Squashed commit of the following: commit 26f8cb7 Author: Sam <[email protected]> Date: Thu Dec 26 14:13:22 2019 -0800 Swift 5.0.3, 5.1.3, remove redundancies commit b6a47f6 Merge: b4f6f38 2cf658a Author: Sam <[email protected]> Date: Thu Dec 26 14:54:28 2019 -0500 Version 0.19.0: No extraneous dependencies Merge pull request #70 from Samasaur1/development commit 2cf658a Author: Sam <[email protected]> Date: Thu Dec 26 14:16:02 2019 -0500 Update CHANGELOG date commit 3884bb6 Author: Sam <[email protected]> Date: Thu Dec 26 13:52:24 2019 -0500 Finalize CHANGELOG commit 9f8a6ef Author: Sam <[email protected]> Date: Wed Dec 25 11:47:11 2019 -0500 Keep track of nodanger Package.resolved and ensure files exist commit a33fc0f Author: Sam <[email protected]> Date: Wed Dec 25 10:40:24 2019 -0500 Update version to 0.19.0 commit 30d9a6f Author: Sam <[email protected]> Date: Wed Dec 25 10:39:43 2019 -0500 Update CHANGELOG commit c0ef36e Author: Sam <[email protected]> Date: Wed Dec 25 09:59:34 2019 -0500 Overwrite package.resolved not Package.swift * Update CHANGELOG * Fix CHANGELOG (there was a merge error) * Bump version to 0.20.0
- Loading branch information
Showing
6 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -5,16 +5,18 @@ gem install jazzy | |
rm -rf docs | ||
rm -rf DiceKit.xcodeproj | ||
swift package generate-xcodeproj | ||
git clone --branch=gh-pages https://github.com/Samasaur1/DiceKit.git docs | ||
git clone --branch=gh-pages https://github.com/Samasaur1/DiceKit.git ghp | ||
jazzy -o newdocs -x -target,DiceKit | ||
rm -rf docs/* | ||
mv newdocs/* docs/ | ||
VERSION=$(python3 scripts/get_version.py) | ||
mkdir ghp/docs/v$VERSION | ||
mv newdocs/* ghp/docs/v$VERSION | ||
rm -rf newdocs/ | ||
cd docs | ||
echo 'section > section > p > img { margin-top: 4em; margin-right: 2em; }' >> css/jazzy.css | ||
cd ghp | ||
echo 'section > section > p > img { margin-top: 4em; margin-right: 2em; }' >> ghp/docs/v$VERSION/css/jazzy.css | ||
bash ../script/updateLatestDocs.sh $VERSION | ||
git config --global user.name "Documentation Bot" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m "Update documentation" | ||
git remote set-url origin https://${GH_TOKEN}@github.com/Samasaur1/DiceKit.git | ||
git push | ||
git push |
This file contains 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
This file contains 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
This file contains 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
This file contains 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,9 @@ | ||
with open(".jazzy.yaml") as file: | ||
data = file.readlines() | ||
|
||
for i in range(len(data)): | ||
if data[i].startswith("module_version: "): | ||
version = data[i][len("module_version: "):] #I know this read call includes the \n and release.py does not, but they both work and don't add or subtract a \n. ¯\_(ツ)_/¯ | ||
index = i | ||
|
||
print(version, end="") |
This file contains 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,11 @@ | ||
cat > docs/latest.html <<HERE | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Refresh" content="0; url=v$1/index.html" /> | ||
</head> | ||
<body> | ||
<p>The latest docs are available <a href="v$1/index.html">here</a>.</p> | ||
</body> | ||
</html> | ||
HERE |