docbrown/docs/frontend
Francisco Quintero 3b939f6b9f
[deploy] Add Reddit Liquid Tag (#8111)
* Implement Reddit liquid tag

* Set reddit content in locals

* Change Reddit liquid tag content layout

I decided a UI similar to the Stack Exchange tag would be better.

Now the Reddit tag looks a bit similar.

* Add tests for RedditTag

* Add reddit liquid tag example to docs

Also emphasize notice about compilation of article when using any
liquid tag

* Parse markdown text reddit content for RedditTag

* Display date RedditTag post was published

* Remove file location comments

* Change order of conditional for Reddit liquid tag

Sometimes the attribute `post_hint` might be null and neither condition
would apply.

* Add example to use Reddit liquid tag

* Change reddit svg icon for Reddit liquid tag

* handle and verify status of Reddit links

Here we make sure the passed link is a valid one in terms of URI composition (e.g. protocol)
but also that the URL is one that points to existing content in Reddit.

If the URL isn't returning anything but a successful response code (200) then
we treat it as an invalid one.

* Do not use VCR for RedditTag specs

The generated cassette for this tag was really huge (6000+ lines).

Using mocks (as in the MediumTag spec) still does the job and without
that huge VCR file.

* Remove index line from schema.db

* Improve RedditJsonFromUrlService

- Change User-Agent in requests to one read from app configuration
- Remove Reddit URL check by making a GET request
- Add regexp to validate URL looks like a Reddit URL

* Move RedditJsonFromUrlService methods to RedditTag

Also changed the way the request was being mocked. Previously, it was by
mocking the service class now I'm mocking HTTParty directly and returning
the JSON structure Reddit uses.
2020-06-01 18:52:07 -04:00
..
debugging.md Preact/React developer tools documentation. (#5884) 2020-02-05 17:21:09 -05:00
dynamic-imports.md More updates to frontend documentation (#5724) 2020-01-27 12:51:55 -05:00
instant-click.md update frontend docs (#5706) 2020-01-24 15:22:27 -05:00
linting-formatting.md [deploy] Remove ALL Algolia Code (#7577) 2020-04-29 10:11:57 -05:00
liquid-tags.md [deploy] Add Reddit Liquid Tag (#8111) 2020-06-01 18:52:07 -04:00
plain-js.md Improve the clarity of the docs and fix Prettier config (#4899) 2019-11-26 08:40:53 -05:00
preact.md Upgrade to webpacker/webpack 4 and Babel 7 (#6664) 2020-03-17 08:20:36 -04:00
readme.md More updates to frontend documentation (#5724) 2020-01-27 12:51:55 -05:00
styles.md More updates to frontend documentation (#5724) 2020-01-27 12:51:55 -05:00
webpacker.md Upgrade to webpacker/webpack 4 and Babel 7 (#6664) 2020-03-17 08:20:36 -04:00

title items
Frontend Guide
plain-js.md
webpacker.md
preact.md
instant-click.md
dynamic-imports.md
styles.md
linting-formatting.md
liquid-tags.md
debugging.md

Frontend Guide