-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site refactor #52
Site refactor #52
Changes from 2 commits
30fa35d
93bb728
f539b31
5fc4750
ad38972
4e59cc8
d962edf
5d21980
5f95647
56ff92f
48f5635
d83b79f
df5ee56
2e2e4c2
963d50c
fe26e56
8f4bc30
1d07ffb
f940f09
305b59f
6af1ff4
4f9645f
ed3f95d
bc7a76d
990e505
f890e34
3c5e2a7
11df3d1
02d90ea
a278814
09af244
c490005
c186a77
dca419e
8e3bb00
3b9e9a0
fdaa741
992a86f
9d2aec9
e653237
5fffc3b
8f097ec
cbd9c1c
7d1a31a
1b116e0
1c2a6de
eec7cf9
33daf62
a35b96b
d9ca2a4
68b36ad
d7a5894
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# EditorConfig - http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,2 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
public/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# [libp2p-website](libp2p.io) | ||
## Implementations & Bundles | ||
JSON arrays to update implementation & bundle status can be found in `/static/js/data` | ||
## Development | ||
```sh | ||
> hugo serve | ||
# ... | ||
Web Server is available at //localhost:1313/ | ||
``` | ||
## Publish | ||
```sh | ||
> hugo | ||
# .. | ||
> ipfs add -r public | ||
``` | ||
# [libp2p-website](libp2p.io) | ||
|
||
## Implementations & Bundles | ||
|
||
JSON arrays to update implementation & bundle status can be found in `/static/js/data` | ||
|
||
## Development | ||
|
||
```sh | ||
> hugo serve | ||
# ... | ||
Web Server is available at //localhost:1313/ | ||
``` | ||
|
||
## Publish | ||
|
||
```sh | ||
> hugo | ||
# .. | ||
|
||
> ipfs add -r public | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should also explain how to use the DNS simple publish script @lgierth can we create a test account for tableflip? A simple account with a random domain will do, then all we need is to change the target and API token. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My crappy dnslink script is here: https://github.com/ipfs/infrastructure/blob/master/scripts/dnslink.sh It needs bash, curl, jq (all in homebrew), and you call it like this |
||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
{{ partial "head.html" . }} | ||
<link rel="stylesheet" type="text/css" href="/css/bundles.css"> | ||
<title>Bundles - libp2p</title> | ||
</head> | ||
<body> | ||
<header> | ||
<div class="wrap"> | ||
<a class="logo static" href="/"> | ||
<img width="60" height="72" src="/img/logo_small.png" alt=""> | ||
<b>lib</b>p2p</a> | ||
<a href='#' class='bars'><i class="fa fa-bars" aria-hidden="true"></i></a> | ||
<a href='#' class="close"><i class="fa fa-times" aria-hidden="true"></i></a> | ||
<nav> | ||
<ul> | ||
<li><a href="/implementations">Implementations</a></li> | ||
<li><a href="/bundles" class="active">Bundles</a></li> | ||
<li><a href="/media">Media</a></li> | ||
<li><a href="https://github.com/libp2p" target="_blank">Github</a></li> | ||
<li><a href="https://github.com/libp2p/specs" target="_blank">Specifications</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
|
||
<main> | ||
<article class="center bundles"> | ||
<header> | ||
<h2>Bundles.</h2> | ||
</header> | ||
<div class="wrap"> | ||
<p> libp2p provides ready-to-use bundles for different use cases and different languages. You can use these | ||
to get all the functionality in one package, instead of including and bundling the different modules | ||
yourself. See it as a quickstart.</p> | ||
<div class="links"> | ||
<div class="active-link"> | ||
<div class="copy-block"></div> | ||
<i class="fa fa-angle-down" aria-hidden="true"></i> | ||
</div> | ||
<div class="columns"> | ||
<div class="column col1"></div> | ||
<div class="column col2"></div> | ||
<div class="column col3"></div> | ||
<div class="column col4"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="triangle white"></div> | ||
</article> | ||
|
||
<article class="center bundles-info"> | ||
<div class="wrap"> | ||
|
||
<!--<section class="coming-soon"></section>--> | ||
|
||
</div> | ||
<div class="triangle grey"></div> | ||
</article> | ||
|
||
</main> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only the main should be in body. Anything that is template/design should go into a partials/template folder. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will be pulling much more into partials. When building pages I find it most useful to be able to compose the page out of templates, rather than override things from a layout. A layout either ends up encoding some assumptions, that some pages may not want, or is so thin that it's hardly worth making the dev fit 2 files in there head to guess what the resulting page will be. |
||
|
||
{{ partial "footer.html" . }} | ||
|
||
<script type="text/javascript" src="/js/lib/jquery-2.1.1.min.js"></script> | ||
<script type="text/javascript" src="/js/data/bundles_data.js"></script> | ||
<script type="text/javascript" src="/js/bundles.js"></script> | ||
<script type="text/javascript" src="/js/common.js"></script> | ||
|
||
</body> | ||
</html> |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation needs to be updated as in "how to update the JSON arrays and what are they containing"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 the README will be fixed up to comply with the README spec, but I'll tackle that last once everything is in place.