Skip to content
This repository was archived by the owner on Jun 2, 2020. It is now read-only.

Move examples from old docs site to this repo#115

Merged
Mr0grog merged 2 commits intomasterfrom
doc/expose-old-examples
Sep 4, 2018
Merged

Move examples from old docs site to this repo#115
Mr0grog merged 2 commits intomasterfrom
doc/expose-old-examples

Conversation

@Mr0grog
Copy link
Copy Markdown
Collaborator

@Mr0grog Mr0grog commented Aug 24, 2018

We actually already had a copy of all the old docs site’s examples here, but they were not exposed in the built site and we linked to the examples from the old site instead. This was because there wasn’t a clear direction for how to handle the “example viewer” app that was used to render them.

Now we need to make a clean break from the old site, so we’re exposing the copies we have here and linking to them instead. That means:

  • We are dropping the “example viewer” app and instead rendering these the same as other guides and docs in the site. I think that’s OK; we don’t have a clear reason for maintaining a special viewer for these examples and it was also yet another thing to maintain with limited resources.
  • We are dropping the “example JS apps.” I think this is also OK because all the example apps didn’t do anything that was special or specific to IPFS or distributed web content. They were just JS web apps, and people can learn how to make those in plenty of other places.

I’ve also added @lidel’s fixes from ipfs-inactive/website#259.

We can also add new examples to the content/guides/examples directory and they’ll get listed now! There are two special notes about that:

  • Unlike most listing pages, we don’t use Hugo’s .Summary variable for summaries on the examples listing page. (It would have been a big change to adapt all the examples to have a nice intro paragraph.) Instead, we use a description variable from the front-matter of each example.

  • I’ve removed these from the sidebar menus. They never showed up there before because they were drafts, but if we want new content to be listed, use the following in the front-matter of the new content:

    menu:
        guides:
            parent: examples

Finally, this does not complete #76. These examples are just as out-of-date as they ever were, and still need to be audited for cleanup or removal. This is mainly about removing the last dependency on the old docs site at https://ipfs.io/docs.

Instead of linking to the old docs site like we used to, expose the same examples here. These are still really out of date and need auditing (see #76), but this at least allows us to keep the content maintained here instead of linking to a site we are deprecating.

Note: this does away with the old example viewer and the example JS apps! I think this is OK: the viewer was another thing to maintain and that nobody was working on; the example JS apps didn't do anything that was special to IPFS or to the distributed web, so they weren't especially relevant here.

License: MIT
Signed-off-by: Rob Brackett <rob@robbrackett.com>
License: MIT
Signed-off-by: Rob Brackett <rob@robbrackett.com>
@Mr0grog
Copy link
Copy Markdown
Collaborator Author

Mr0grog commented Sep 4, 2018

I’m going to go ahead and merge this since it’s been sitting with no feedback for a while, but is needed to clearly and finally separate the content here from ipfs.io/docs.

@Mr0grog Mr0grog merged commit 93ef1f6 into master Sep 4, 2018
@Mr0grog Mr0grog deleted the doc/expose-old-examples branch September 4, 2018 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant