forked from zedeus/nitter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ FROM nimlang/nim:1.6.2-alpine-regular as nim | |
LABEL maintainer="[email protected]" | ||
EXPOSE 8080 | ||
|
||
RUN apk --no-cache add libsass-dev | ||
RUN apk --no-cache add libsass-dev pcre | ||
|
||
COPY . /src/nitter | ||
WORKDIR /src/nitter | ||
|
||
RUN nimble build -y -d:release -d:danger --passC:"-flto" --passL:"-flto" \ | ||
&& strip -s nitter \ | ||
&& nimble scss | ||
RUN nimble build -y -d:danger -d:lto -d:strip \ | ||
&& nimble scss \ | ||
&& nimble md | ||
|
||
FROM alpine:latest | ||
WORKDIR /src/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-License-Identifier: AGPL-3.0-only | ||
import karax/[karaxdsl, vdom] | ||
|
||
proc renderFeature*(): VNode = | ||
buildHtml(tdiv(class="overlay-panel")): | ||
h1: text "Unsupported feature" | ||
p: | ||
text "Nitter doesn't support this feature yet, but it might in the future. " | ||
text "You can check for an issue and open one if needed here: " | ||
a(href="https://github.com/zedeus/nitter/issues"): | ||
text "https://github.com/zedeus/nitter/issues" | ||
p: | ||
text "To find out more about the Nitter project, see the " | ||
a(href="/about"): text "About page" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import std/[os, strutils] | ||
import markdown | ||
|
||
for file in walkFiles("public/md/*.md"): | ||
let | ||
html = markdown(readFile(file)) | ||
output = file.replace(".md", ".html") | ||
|
||
output.writeFile(html) | ||
echo "Rendered ", output |