mirror of
https://github.com/ViViDboarder/docset-sfdc.git
synced 2024-11-14 17:16:30 +00:00
Add some stuff for version tracking as well as archival
This commit is contained in:
parent
80d6c867cd
commit
b82e18781b
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,3 +10,4 @@ docs.min.css
|
||||
holygrail.min.css
|
||||
syntax-highlighter.min.css
|
||||
*-version.txt
|
||||
*.tgz
|
||||
|
12
Makefile
12
Makefile
@ -14,22 +14,26 @@ run-combined:
|
||||
package-apex:
|
||||
$(eval type = Apex)
|
||||
$(eval package = Salesforce $(type).docset)
|
||||
$(eval version = $(shell cat SFDashC/$(shell echo $(type)| tr A-Z a-z)-version.txt))
|
||||
mkdir -p "$(package)/Contents/Resources/Documents"
|
||||
cp -r SFDashC/atlas.en-us.apexcode.meta "$(package)/Contents/Resources/Documents/"
|
||||
cp SFDashC/*.html "$(package)/Contents/Resources/Documents/"
|
||||
cp SFDashC/*.css "$(package)/Contents/Resources/Documents/"
|
||||
cp SFDashC/Info-$(type).plist "$(package)/Contents/Info.plist"
|
||||
cp SFDashC/docSet.dsidx "$(package)/Contents/Resources/"
|
||||
@echo "Docset generated!"
|
||||
|
||||
package-vf:
|
||||
$(eval type = Pages)
|
||||
$(eval package = Salesforce $(type).docset)
|
||||
$(eval version = $(shell cat SFDashC/$(shell echo $(type)| tr A-Z a-z)-version.txt))
|
||||
mkdir -p "$(package)/Contents/Resources/Documents"
|
||||
cp -r SFDashC/atlas.en-us.pages.meta "$(package)/Contents/Resources/Documents/"
|
||||
cp SFDashC/*.html "$(package)/Contents/Resources/Documents/"
|
||||
cp SFDashC/*.css "$(package)/Contents/Resources/Documents/"
|
||||
cp SFDashC/Info-$(type).plist "$(package)/Contents/Info.plist"
|
||||
cp SFDashC/docSet.dsidx "$(package)/Contents/Resources/"
|
||||
@echo "Docset generated!"
|
||||
|
||||
package-combined:
|
||||
$(eval type = Combined)
|
||||
@ -40,11 +44,17 @@ package-combined:
|
||||
cp SFDashC/*.css "$(package)/Contents/Resources/Documents/"
|
||||
cp SFDashC/Info-$(type).plist "$(package)/Contents/Info.plist"
|
||||
cp SFDashC/docSet.dsidx "$(package)/Contents/Resources/"
|
||||
@echo "Docset generated!"
|
||||
|
||||
archive:
|
||||
find *.docset -depth 0 | xargs -I '{}' sh -c 'tar --exclude=".DS_Store" -czf "$$(echo {} | sed "s/\.[^.]*$$//").tgz" "{}"'
|
||||
@echo "Archives created!"
|
||||
|
||||
clean-index:
|
||||
rm -f SFDashC/docSet.dsidx
|
||||
|
||||
clean: clean-index
|
||||
rm -fr SFDashC/*.meta
|
||||
rm -f SFDashC/*.css
|
||||
rm -fr *.docset
|
||||
rm -f SFDashC/*.css
|
||||
rm -f *.tgz
|
||||
|
@ -70,7 +70,7 @@ func verifyVersion(toc *AtlasTOC) error {
|
||||
}
|
||||
|
||||
func printSuccess(toc *AtlasTOC) {
|
||||
fmt.Println("Success:", toc.DocTitle, "-", toc.Version.VersionText)
|
||||
fmt.Println("Success:", toc.DocTitle, "-", toc.Version.VersionText, "-", toc.Version.DocVersion)
|
||||
}
|
||||
|
||||
func saveMainContent(toc *AtlasTOC) {
|
||||
|
Loading…
Reference in New Issue
Block a user