Skip to content

Commit

Permalink
fix: fix broken refs and change warns to errors
Browse files Browse the repository at this point in the history
closes #980
closes #1103
  • Loading branch information
hugomrdias committed Sep 3, 2020
1 parent eeaa6b5 commit b084602
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ The listing shortcode creates tables from externals sources, supports Go `struct
{{<listing src="/externals/go-data-transfer/types.go" symbol="Channel">}}
```

### `Mermaid`
### `mermaid`
Inline mermaid syntax rendering
```html
{{< mermaid >}}
Expand Down
4 changes: 2 additions & 2 deletions content/algorithms/porep/stacked_drg.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ In Filecoin, PoRep provides two guarantees: (1) *space-hardness*: Storage Miners
Glossary:

- __*sector:*__ a fixed-size block of data of `SECTOR_SIZE` bytes which generally contains clients' data.
- __*unsealed sector:*__ a concrete representation (on disk or in memory) of a sector's that follows the "Storage Format" described in [Client Data Processing](/missing_link) (currently `paddedfr32v1` is the required default).
- __*unsealed sector:*__ a concrete representation (on disk or in memory) of a sector's that follows the "Storage Format" described in Client Data Processing (currently `paddedfr32v1` is the required default).
- __*sealed sector:*__ a concrete representation (on disk or in memory) of the unique replica generated by `Seal` from an __*unsealed sector*__. A sector contains one or more ***pieces***.
- __*piece:*__ a block of data of at most `SECTOR_SIZE` bytes which is generally a client's file or part of.

Expand Down Expand Up @@ -234,7 +234,7 @@ TODO: link to filproofs/feistel

> The Replication phase turns an *unsealed sector* into a *sealed sector* by first *generating a key*, then using the key to *encode the orignal data*.
Before running the `Replicate` algorithm, the prover must ensure that the sector is correctly formatted with a valid "Storage Format" described in [Filecoin Client Data Processing](/missing_link) (currently `paddedfr32v1` is the required default).
Before running the `Replicate` algorithm, the prover must ensure that the sector is correctly formatted with a valid "Storage Format" described in Filecoin Client Data Processing (currently `paddedfr32v1` is the required default).

{{< hint warning >}}
TODO: inputs are missing
Expand Down
1 change: 0 additions & 1 deletion content/intro/arch.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dashboardAudit: n/a
- move data_transfers into Token
{{< /details >}}


![Protocol Overview Diagram](diagrams/overview1/overview.dot)

## Protocol Flow Diagram
Expand Down
3 changes: 0 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ require (
github.com/filecoin-project/go-fil-markets v0.5.7 // indirect
github.com/filecoin-project/lotus v0.5.3 // indirect
github.com/filecoin-project/specs-actors v0.9.3
github.com/ipfs/go-cid v0.0.7
github.com/ipld/go-ipld-prime v0.0.2-0.20200428162820-8b59dc292b8e
github.com/libp2p/go-libp2p-core v0.6.1
)
27 changes: 0 additions & 27 deletions go.sum

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
{{ $src := .Page.Resources.GetMatch .Destination }}
{{ with $src }}
{{ $genPath = .RelPermalink }}
<img loading="lazy" src="{{ .RelPermalink }}" loading="lazy" alt="{{ $title }}"/>
<img loading="lazy" src="{{ .RelPermalink }}" loading="lazy" alt="{{ $title }}" title="{{ $title }}"/>
{{- else -}}
{{- errorf "Image '%s' not found from Page '%s'" .Destination .Page.File }}
{{ end }}
{{- else -}}
{{ if eq ( $src | printf "%.1s") "/" }}
Expand All @@ -26,19 +28,17 @@
{{ $path = printf "%s%s" .Page.File.Dir $src }}
{{ $genPath = (printf "/_gen/diagrams/%s?%d" (replace $path $ext ".svg") now.Unix)}}
{{- end -}}

{{ if fileExists $path }}
<img src="{{ $genPath | safeURL }}" loading="lazy" height="100%" alt="{{ .Text }}" title="{{ $title }}"/>
{{ else }}
<blockquote class="book-hint danger">
{{- printf "File '%s' not found from Page '%s'" $src .Page.File }}
</blockquote>
{{- warnf "File '%s' not found from Page '%s'" $src .Page.File }}
{{- errorf "Image '%s' not found from Page '%s'" $src .Page.File }}
{{ end }}
{{- end -}}

</div>
<figcaption title="{{ $title }}" class="diagrams-caption">
Figure: {{ $title }}
<a class="diagrams-link" title="Open diagram in new tab" href="{{ $genPath }}" target="_blank">Open in tab</a>
<a class="diagrams-link" title="Open diagram in new tab" href="{{ $genPath }}" target="_blank" rel="noopener">Open in tab</a>
</figcaption>
</figure>
4 changes: 2 additions & 2 deletions layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{{- else -}}
{{- $anchor = printf "#%s" (delimit $pathParts "__") -}}
{{- end -}}
{{- $destination = $anchor }}
{{- $destination = $anchor }}
{{- if .Title -}}
{{- $title = .Title -}}
{{- else -}}
Expand All @@ -45,7 +45,7 @@
{{- else if fileExists (print .Page.File.Dir .Destination) }}
<!-- Nothing -->
{{- else -}}
{{- warnf "Page '%s' not found in '%s' for lang '%s'" .Destination .Page.File .Page.File.Lang }}
{{- errorf "Page '%s' not found in '%s' for lang '%s'" .Destination .Page.File .Page.File.Lang }}
{{- end }}
{{- end }}
<a href="{{ $destination | safeURL }}"{{ with $title}} title="{{ . }}"{{ end }} {{ if $isRemote }} target="_blank" rel="noopener"{{ end }}>{{ (default $title .Text) | safeHTML }}</a>
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@
<blockquote class="book-hint danger">
{{- printf "File '%s' not found from Page '%s'" ($path) .Page.File }}
</blockquote>
{{- warnf "File '%s' not found from Page '%s'" ($path) .Page.File }}
{{- errorf "File '%s' not found from Page '%s'" ($path) .Page.File }}
{{ end }}
2 changes: 1 addition & 1 deletion layouts/shortcodes/mermaid.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<blockquote class="book-hint danger">
{{- printf "File '%s' not found from Page '%s'" ($.Scratch.Get "filepath") .Page.File }}
</blockquote>
{{- warnf "File '%s' not found from Page '%s'" ($.Scratch.Get "filepath") .Page.File }}
{{- errorf "File '%s' not found from Page '%s'" ($.Scratch.Get "filepath") .Page.File }}
{{ end }}
{{ else }}
{{ $uuid := delimit (shuffle (seq 1 9)) "" }}
Expand Down

0 comments on commit b084602

Please sign in to comment.