Commit Graph

31 Commits

Author SHA1 Message Date
Anton Nikolaev
039d3a4a08 Move plugin docs to plugin folders
Summary: Moved plugin documentation and related assets to plugin folders, fixed links and configured redirects where required. Now these docs are used for both showing docs in Flipper and generating Flipper docs website.

Reviewed By: passy

Differential Revision: D29465567

fbshipit-source-id: 3ec4240b215b0d5baea5154f64266a9ba7ead3a5
2021-06-29 17:40:38 -07:00
Anton Nikolaev
e4fb2907fd Auto-generate plugin docs
Summary:
This diff changes the way on how plugin documentation is produced. Instead of keeping plugin documentation together with other docs, we will now keep it together with plugin code. There are multiple advantages of such solution:
1. We are generating docs for every plugin in a standartised way so all of them looks similar. We can also use plugin metadata for generation as well (e.g. take title, icon, oncall name etc from package.json).
2. Standartised plugin docs make it possible to build docs both for websites (public and internal) and for embedding into Flipper.
3. It will hopefully incentivise authors to write docs as they will be a part of plugin "package".
4. We can scaffold documentation template using scarf to further incentivise filling it.

Reviewed By: jknoxville

Differential Revision: D29378053

fbshipit-source-id: 66ea48dc9ba225fabfb256ae6a10f8c81eef6f5f
2021-06-29 13:02:05 -07:00
John Knox
b6fc2f0651 Fix duplicate route to setup/leak-canary-plugin
Summary:
Noticed this when building the site. Shame it only warns and doesn't fail the build.
Just fixing it while I'm here.

{F479009268}

Reviewed By: nikoant

Differential Revision: D26911725

fbshipit-source-id: 6440a4b8aee4a6bc053ae771a3b148fd70ffc298
2021-03-09 05:43:29 -08:00
John Knox
c460cb767f Fix deleted page redirects
Summary:
The redirects we added inline in the deleted pages don't work when there's a baseUrl.

This is because it's the standard react-router Redirect component, which knows nothing about docusaurus sites.

We could get around that by adding `useBaseUrl()` calls around all of them, but that's not great.
So changing to using declarative redirects instead, where they are all put in config. This automatically takes care of base urls, and reduces copy-pasted code.

Reviewed By: passy

Differential Revision: D25780599

fbshipit-source-id: c67d3643ab28f0fcd440904baf54c67687781686
2021-01-05 09:24:48 -08:00
John Knox
00356f96c5 Convert Link tags to md syntax
Summary:
Previously we used <Link/> everywhere with useBaseUrl to avoid link destinations depending on the current url of the page.

This isn't necessary if you instead link to the **file name**, rather than the **url path**.
Then the links are resolved at build time, and work across imported markdown files etc.

This diff just does the pages under Features, because other ones will get conflicts. I'll do those later.

Reviewed By: nikoant

Differential Revision: D25589707

fbshipit-source-id: 35ca986e19fc2af1054b81d7253eeb3827947ab8
2020-12-16 10:37:34 -08:00
Pascal Hartig
d765e0f93e Fix React Native docs
Summary: Reckon this broke with the Docusaurus 2 upgrade.

Reviewed By: mweststrate

Differential Revision: D24537442

fbshipit-source-id: b3fbac990f82819941e17f0f7ce89df616aa6718
2020-10-29 05:58:20 -07:00
Pascal Hartig
b2e8070af2 Fix relative links
Summary: Translated all cases where we had a parent-relative link to use the base URL instead.

Reviewed By: jknoxville

Differential Revision: D22256229

fbshipit-source-id: 81ee6fecb77dbaa19d112cb319771c22ff66d02a
2020-06-26 05:13:48 -07:00
IdaszakDaniel
88a84a4d9f Fix typo in React Native doc (#1205)
Summary:
Fix typo in React Native doc

## Changelog

N/A
Pull Request resolved: https://github.com/facebook/flipper/pull/1205

Test Plan: N/A

Reviewed By: passy

Differential Revision: D21838116

Pulled By: mweststrate

fbshipit-source-id: ca18f3c7e6780a5ea4c29c24e270fcd6fc57feec
2020-06-02 09:39:46 -07:00
Michel Weststrate
f9ade3d74d add link to RN + Flipper talk
Summary: ^

Reviewed By: passy

Differential Revision: D21619630

fbshipit-source-id: f1570cc509b67d5a6bace76f1c094abe81b42522
2020-05-19 05:33:34 -07:00
John Knox
4a777df617 Fix more links
Summary:
Somehow I missed these two the last time.
These are the final broken links reported by https://www.brokenlinkcheck.com/broken-links.php#status except for the "edit this page" link on the autogenerated ui-components page.

Reviewed By: mweststrate

Differential Revision: D21325511

fbshipit-source-id: dbc61bbed1366a007ed2cdde3a72f8ea974d871f
2020-04-30 05:59:01 -07:00
John Knox
7e4682b694 Fix the remaining broken links on fbflipper.com
Summary:
Used https://www.brokenlinkcheck.com/broken-links.php#status for now to find broken links and fixed them all.

Would be better to use some automated tool to check this at diff time, but that's not setup yet.

Reviewed By: passy

Differential Revision: D21301702

fbshipit-source-id: f13c8769b15d9f99563fc65dc0544320d07a2bfb
2020-04-29 07:33:43 -07:00
John Knox
281cd67ddb Fix some broken links
Summary:
KESHAmambo pointed out some internal links are broken on the website: https://twitter.com/KESHAmambo/status/1255443093542895619

The way relative links are processed in docusaurus v1 and v2 has changed. This fixes them up.

Reviewed By: mweststrate

Differential Revision: D21301293

fbshipit-source-id: 7610e38a55bc066625373cf2eee9a3efb63aec08
2020-04-29 05:21:31 -07:00
John Knox
5f1a0548f5 Migrate website to Docusaurus 2
Summary:
Docusaurus 2 is quite a lot more powerful than docu 1 it turns out.
This should convert the website fully.

* [done] Go through migration guide https://v2.docusaurus.io/docs/migrating-from-v1-to-v2
* [done] Convert landing page html
* [done] Convert all images to img tags
* [done] Convert all .md files to .mdx
* [done] Make sure ui-doc generation and including still works
* [done] Scan every page visually for sanity check
* [done] Make sure footer still works
* [done] Make sure search still works
* [done] Change all links/ to links/index
* [done] Change all links.md to links
* [done] Add some custom css to make the navbar look like the old one and darken the footer.

Reviewed By: passy

Differential Revision: D21158717

fbshipit-source-id: 5f45b711b1b6fd5ece4c5c15c55635c7ebbfb568
2020-04-27 04:05:01 -07:00
Jamon Holmgren
8c9de002bf Add Reactotron's Flipper plugin to docs / website (#1009)
Summary:
We've ported [Reactotron](https://infinite.red/reactotron) to work as a Flipper plugin. This adds a new section listing known community plugins and starts with Reactotron-in-Flipper as an example.

## Changelog

Added one section to the React Native page.
Pull Request resolved: https://github.com/facebook/flipper/pull/1009

Test Plan: Docs-only.

Reviewed By: passy

Differential Revision: D21039079

Pulled By: mweststrate

fbshipit-source-id: 1187119d78baba321012f8ffa243685b25441e9d
2020-04-15 06:20:31 -07:00
John Knox
5ad8106e3f Fix image links with baseUrl
Summary:
When using baseUrl in site config, it adds a prefix to all link paths.

But for assets, it doesn't work if you refer to them as `docs/assets/...`, you have to use just `assets/...`. Source: https://github.com/facebook/Docusaurus/issues/861

Reviewed By: passy

Differential Revision: D20796933

fbshipit-source-id: 2346e42b8b548f576a1e143f56ee5236eab55073
2020-04-02 03:14:08 -07:00
Michel Weststrate
60ec958f6b Add (manual) tests to be able to verify working of network and logs
Summary: Added some UI so that we can manually verify that logging and network inspection is working in RN + Flipper.

Reviewed By: jknoxville

Differential Revision: D20668428

fbshipit-source-id: 4271595583e055b2b0324b3da7ac216c39717093
2020-03-26 04:54:24 -07:00
Michel Weststrate
8060bcb664 Add feature page for react native integration
Summary: https://pxl.cl/144pb

Reviewed By: jknoxville

Differential Revision: D20648205

fbshipit-source-id: 1349723755ed2be5b577f42ec1e45df07c25c94f
2020-03-25 15:36:22 -07:00
Michael Lefkowitz
cadf0fc6d7 Update network-plugin.md (#797)
Summary:
fixes typo

## Changelog

- fixes typo on network page
Pull Request resolved: https://github.com/facebook/flipper/pull/797

Test Plan: n/a

Reviewed By: priteshrnandgaonkar

Differential Revision: D19902534

Pulled By: passy

fbshipit-source-id: fc25d8a1fc0889a1b4e5003c724781f54d01f65d
2020-02-14 10:11:46 -08:00
Arnaud Frugier
57e8f8e235 Updating documentation for new version of database plugin
Summary: ^^

Reviewed By: jknoxville

Differential Revision: D17770002

fbshipit-source-id: f2aa1a0fbdea0f2f794261f77dfe2557def2aef0
2019-10-07 08:19:41 -07:00
Bartol Karuza
b3a98dc5e5 chore(docs): typo (#566)
Summary:
## Changelog
Pull Request resolved: https://github.com/facebook/flipper/pull/566

Differential Revision: D17737731

Pulled By: passy

fbshipit-source-id: f2aac8d7b256b3d2849942c42581046944bc11c9
2019-10-03 06:57:26 -07:00
Benjamin Elo
6b93cd15c2 Added docs for open source Navigation Plugin
Summary:
Added docs for the Navigation Plugin.

I've added instructions on how to use the plugin with vanilla Android, or how to integrate it with a third party solution.

Reviewed By: danielbuechele

Differential Revision: D16856614

fbshipit-source-id: e99cb94318820bd926f50bd4ba205fb11396a9d8
2019-08-16 07:29:18 -07:00
Pascal Hartig
f279da4d90 Fix Fresco typos
Summary: Per title.

Reviewed By: jknoxville

Differential Revision: D16089146

fbshipit-source-id: 3bfa6494ecc99c191fbb57ef67723283b5ab0998
2019-07-02 06:23:54 -07:00
Pascal Hartig
9e13b90708 Add setup docs for Fresco/Images
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D15898614

fbshipit-source-id: b2d86a58e80b1309159bc738bcc66ca09cd796ad
2019-06-20 03:51:18 -07:00
Pascal Hartig
aae6a7f109 Add docs for fresco plugin
Summary:
Now that we finally have something we can screenshot ...

Just for the features page right now, will add some
"installation" instructions next.

Reviewed By: oprisnik

Differential Revision: D15898050

fbshipit-source-id: 9dfd3b1121799e7069336aac845ba2abdb3e42df
2019-06-20 03:51:18 -07:00
Arnaud Frugier
fa887f4f12 Add documentation for Databases Plugin
Summary: ^^

Reviewed By: jknoxville

Differential Revision: D15666190

fbshipit-source-id: 4b2f5c5544820baa4654b4e52a7e75bd275facc1
2019-06-06 11:17:19 -07:00
Pascal Hartig
2b6888b0d3 Update share-flipper-data.md (#446)
Summary:
It looked like the "..." was meant as a placeholder?
Pull Request resolved: https://github.com/facebook/flipper/pull/446

Reviewed By: danielbuechele

Differential Revision: D15337644

Pulled By: passy

fbshipit-source-id: 89d4d15d1448d8c61997341b5bfd67f2adb6a021
2019-05-15 03:51:30 -07:00
Pascal Hartig
94f4a7261f Update sandbox-plugin.md (#438)
Summary:
Simplify wording a bit.
Pull Request resolved: https://github.com/facebook/flipper/pull/438

Reviewed By: priteshrnandgaonkar

Differential Revision: D15258346

Pulled By: passy

fbshipit-source-id: 98e7b6bd190e90e9f5e63d9522dc880f54f72168
2019-05-08 09:08:26 -07:00
Pascal Hartig
484f38a814 Update logs-plugin.md (#435)
Summary:
Fix some typos.
Pull Request resolved: https://github.com/facebook/flipper/pull/435

Reviewed By: jknoxville

Differential Revision: D15239797

Pulled By: passy

fbshipit-source-id: baf0518f10998bb8027dcdf97490452aff101a42
2019-05-07 10:32:50 -07:00
Daniel Büchele
8734b99f8d fixing links, adding nice buttons
Summary: as per title

Reviewed By: jknoxville

Differential Revision: D15167533

fbshipit-source-id: 67d059c478bf0608b598ba7cd6be19157ff41900
2019-05-01 11:21:54 -07:00
Daniel Büchele
79622ac19d docs: cross linking from features to setup
Summary: linking from feature page to setup instructions.

Reviewed By: jknoxville

Differential Revision: D15148032

fbshipit-source-id: 66dd2ca07a04d3ac1fb53ad95e91e6d8beb69706
2019-04-30 09:10:12 -07:00
Daniel Büchele
3b03a3d605 docs: add features page
Summary: Adding a "features" page to the to bar and splitting plugin descriptions from their setup instructions.

Reviewed By: jknoxville

Differential Revision: D15147464

fbshipit-source-id: b2106d825454c3b2989eb1e536b128ef9b6d0247
2019-04-30 07:39:16 -07:00