Static DocC Docs part 3: github pages (#1422)

* added index.html

* added version number to output folder for docs

* added step to auto commit

* clean up variables

* Update documentation

* fixed paths

* added version number to hosting base path

* Update documentation

* add nojekyll file to skip jekyll

* updated repo so it uses the main repo and not my personal fork

* remove versioned docs
This commit is contained in:
aboedo authored and GitHub committed 2022-04-07 15:32:53 -03:00
1 parent c1c3548367
commit 6e2913bc7e
3 files changed
+16 -2

No files matched your search

View File
Whitespace-only changes.
+8
View File
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/purchases-ios/4.2.0-SNAPSHOT/documentation/revenuecat"/>
</head>
<body>
</body>
</html>
+8 -2
View File
@@ -83,6 +83,7 @@ platform :ios do
'../.version',
'../Examples/MagicWeather/MagicWeather.xcodeproj/project.pbxproj',
'../Examples/MagicWeatherSwiftUI/Magic Weather SwiftUI.xcodeproj/project.pbxproj',
'../docs/index.html',
]
for file_to_update in files_to_update
increment_build_number(previous_version_number, new_version_number, file_to_update)
@@ -445,9 +446,11 @@ platform :ios do
desc "Generate docs"
lane :generate_docs do
ENV["INCLUDE_DOCC_PLUGIN"] = "true"
version_number = current_version_number
docs_folder = "docs/#{version_number}"
hosting_base_path = "purchases-ios/#{version_number}"
Dir.chdir("..") do
hosting_base_path = "purchases-ios"
docs_folder = "docs"
sh("swift",
"package",
"--disable-sandbox",
@@ -463,6 +466,9 @@ platform :ios do
"#{hosting_base_path}",
"--transform-for-static-hosting")
end
git_add(path: docs_folder)
git_commit(path: docs_folder, message: "Update documentation")
push_to_git_remote
end
desc "Create or delete sandbox testers"