Skip to content

Commit

Permalink
Revert "Swift Docs: Readme updated and url changed from 2.2 to 3.1" (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
moollaza authored and danidee10 committed Mar 30, 2017
1 parent 1f4c224 commit 034937c
Show file tree
Hide file tree
Showing 8 changed files with 2,284 additions and 3,737 deletions.
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
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.

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

Large diffs are not rendered by default.

File renamed without changes.
@@ -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
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

0 comments on commit 034937c

Please sign in to comment.