Skip to content

Commit e6105d0

Browse files
committed
Init
0 parents  commit e6105d0

37 files changed

+5880
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*.{c,css,h,d,di,dd,dt,js,json}]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = tab
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
charset = utf-8

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.project
2+
/.dub
3+
/__test__library__
4+
/dub-docs
5+
*.exe
6+
log.txt
7+
settings.json

LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Boost Software License - Version 1.0 - August 17th, 2003
2+
3+
Permission is hereby granted, free of charge, to any person or organization
4+
obtaining a copy of the software and accompanying documentation covered by
5+
this license (the "Software") to use, reproduce, display, distribute,
6+
execute, and transmit the Software, and to prepare derivative works of the
7+
Software, and to permit third-parties to whom the Software is furnished to
8+
do so, all subject to the following:
9+
10+
The copyright notices in the Software and this entire statement, including
11+
the above license grant, this restriction and the following disclaimer,
12+
must be included in all copies of the Software, in whole or in part, and
13+
all derivative works of the Software, unless such copies or derivative
14+
works are solely in the form of machine-executable object code generated by
15+
a source language processor.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23+
DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
DUB docs
2+
========
3+
4+
Documentation for [dub](https://github.com/dlang/dub/) packages, see <https://dub.pm>.
5+
6+
For the package registry, see https://code.dlang.org
7+
8+
How to build & run locally
9+
--------------------------
10+
11+
```
12+
dub
13+
```

dub.sdl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name "dub-docs"
2+
description "Documentation for dub"
3+
homepage "https://dub.pm"
4+
authors "Sönke Ludwig" "Martin Nowak" "Anton Fediushin aka ohdatboi" \
5+
"Jan Jurzitza aka WebFreak001" "Sebastian Wilzbach" "Colden Cullen" \
6+
"see GitHub for more"
7+
license "BSL-1.0"
8+
9+
dependency "vibe-d:web" version="~>0.8.4"
10+
// needed to avoid warnings about the package not being a dependency
11+
dependency "vibe-d:tls" version="~>0.8.4"
12+
dependency "dub" version="~>1.7.0"
13+
subConfiguration "dub" "library-nonet"
14+
subConfiguration "vibe-d:tls" "notls"
15+
16+
versions "VibeJsonFieldNames"
17+
versions "VibeNoSSL"
18+
19+
configuration "application" {
20+
targetType "executable"
21+
mainSourceFile "source/app.d"
22+
}

dub.selections.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"fileVersion": 1,
3+
"versions": {
4+
"botan": "1.12.10",
5+
"botan-math": "1.0.3",
6+
"diet-ng": "1.5.0",
7+
"dub": "1.7.2",
8+
"eventcore": "0.8.35",
9+
"libasync": "0.8.3",
10+
"libevent": "2.0.2+2.0.16",
11+
"memutils": "0.4.11",
12+
"mir-linux-kernel": "1.0.0",
13+
"openssl": "1.1.6+1.0.1g",
14+
"stdx-allocator": "2.77.2",
15+
"taggedalgebraic": "0.10.11",
16+
"userman": "0.3.8",
17+
"vibe-core": "1.4.1",
18+
"vibe-d": "0.8.4"
19+
}
20+
}

netlify.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env bash
2+
# A small script to build the registry and download a few pages for a static build
3+
4+
set -euo pipefail
5+
set -x
6+
7+
DMD_VERSION="2.081.1"
8+
BUILD_DIR="out"
9+
10+
CURL_FLAGS=(-fsSL --retry 10 --retry-delay 30 --retry-max-time 600 --connect-timeout 5 --speed-time 30 --speed-limit 1024)
11+
12+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
13+
cd "${DIR}"
14+
15+
. "$(curl "${CURL_FLAGS[@]}" https://dlang.org/install.sh | bash -s install "dmd-${DMD_VERSION}" --activate)"
16+
17+
# Build and start the doc server
18+
dub build
19+
./dub-docs &
20+
PID_DOCS=$!
21+
sleep 1s
22+
23+
DOCS_URL="http://127.0.0.1:8005"
24+
25+
# ignore pages with a ? (not supported by netlify)
26+
# Netlify doesn't support filenames containing # or ? characters
27+
# TODO: replace all files and links containing a ? with e.g. _
28+
# with the reject files with ? + most package version listings are rejected
29+
wget --mirror --level 6 --convert-links --adjust-extension --page-requisites --no-parent ${DOCS_URL} || true
30+
echo "Finished mirroring."
31+
32+
mv "127.0.0.1:8005" ${BUILD_DIR}
33+
# Chrome doesn't like images without an extension
34+
find out -name "logo" | xargs -I {} mv {} {}.svg
35+
sed 's/src="\([^"]*\)\/logo"/src="\1\/logo.svg"/' -i $(find out -name "*.html")
36+
37+
kill -9 $PID_DOCS || true
38+
39+
# Final cleanup (in case something was missed)
40+
pkill -9 -P $$ || true

netlify.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[build]
2+
base = ""
3+
publish = "out"
4+
command = "bash netlify.sh"

public/favicon.ico

31.3 KB
Binary file not shown.

public/fonts/fontello.eot

17.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)