Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Revert "Swift Docs: Readme updated and url changed from 2.2 to 3.1" #790

Merged
merged 1 commit into from
Feb 14, 2017
Merged
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
1 change: 0 additions & 1 deletion lib/fathead/swiftdocs/.gitignore

This file was deleted.

17 changes: 8 additions & 9 deletions lib/fathead/swiftdocs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ Screencaps:
<img width="712" alt="screen shot 2016-07-27 at 3 04 21 pm" src="https://cloud.githubusercontent.com/assets/81969/17188568/b05d6ac2-540b-11e6-9233-57b0a002e400.png">
<img width="438" alt="screen shot 2016-07-27 at 3 04 32 pm" src="https://cloud.githubusercontent.com/assets/81969/17188569/b05d788c-540b-11e6-83b5-fffe0156c606.png">

Dependencies:
------------
npm and node
What's missing?
----

How to test this:
----------------
Navigate to the swiftdocs directory under lib/fathead/ and run these commands
1. npm install
2. ./parse.sh

Disambiguation is currently missing but I think we can make a PR for that instead in the future. What we have here should be an MVP.

How do I test this?
-----
You need `node` and `npm` installed on your machine. After that, run:

`cd lib/fathead/swift && npm install && ./parse.sh`
3,725 changes: 0 additions & 3,725 deletions lib/fathead/swiftdocs/output.txt

This file was deleted.

2,274 changes: 2,274 additions & 0 deletions lib/fathead/swiftdocs/swift/output.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

rm output.txt
node parse.js
./node_modules/.bin/babel src --out-dir . && node parse.js
LC_ALL=C sort output.txt -o output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const sanitizeHtml = require('sanitize-html');
const fs = require('fs');

// This is the Swift version number that we'll be parsing.
const version = "v3.1";
const version = "v2.2";
const domain = "http://swiftdoc.org";
const rootURL = `${domain}/${version}/`;

Expand Down