This repo generates a docset in the Kapeli Dash Mac App for the Swift Programming Language v5.1
You can simply clone the repo and double click the Swift.docset file to start using in Kapeli Dash.
If you want to manually build the docs you can follow the steps below.
-
If you don't have brew installed first install brew. Enter this into your terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Once you have you brew, you need to install dashing. Enter this into you terminal:
brew install dashing
-
Then you'll need to install wget. Enter this into your terminal:
brew install wget
-
Clone the repo.
-
In the project directory run:
wget -k -r -p -np https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html
-
Open a text editor (ie. VSCode), and do a search and replace for all paragraph markings (¶). Replace the (¶) with nothing (ie. "").
-
Once complete run:
dashing build
-
This create a Swift.docset file. You can then doubleclick this icon and it will be in Dash.