Skip to content

Commit d870112

Browse files
Add BlackSheep v1
1 parent 6197769 commit d870112

8 files changed

Lines changed: 27 additions & 8 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ site.zip
66

77
# temporary
88
rodi
9+
shared-assets
10+
copy-shared.sh

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Neoteroi, Roberto Prevato (roberto.prevato@gmail.com)
3+
Copyright (c) 2021 Roberto Prevato (roberto.prevato@gmail.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ The code has been modified to unify different projects.
1212

1313
## How to contribute
1414

15-
The documentation uses MkDocs. For information on how to use MkDocs, refer to its
16-
documentation.
15+
The documentation uses MkDocs and Material for MkDocs. For information on how
16+
to use these tools, refer to their documentation.
1717

1818
```bash
1919
$ mkdocs serve

blacksheep/archive/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Archived documentation
2+
3+
This folder contains archived documentation of the web framework, not meant
4+
to be updated.

blacksheep/archive/v1.7z

1.98 MB
Binary file not shown.

blacksheep/copy-archive.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/bash
2+
3+
# This file expects an existing ./site folder created using MkDocs build.
4+
# It unzips archives of older versions of the documentation into the site
5+
# folder.
6+
7z x -o"site/v1" archive/v1.7z

blacksheep/docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ pip install blacksheep
1616
## BlackSheep offers...
1717

1818
- A rich code API, based on dependency injection and inspired by Flask and
19-
ASP.NET Core
19+
ASP.NET Core.
2020
- A typing-friendly codebase, which enables a comfortable development
21-
experience thanks to hints when coding with IDEs
21+
experience thanks to hints when coding with IDEs.
2222
- Built-in generation of OpenAPI Documentation, supporting version 3, YAML, and
23-
JSON
24-
- A cross-platform framework, using the most modern versions of Python
25-
- Good performance
23+
JSON.
24+
- A cross-platform framework, using the most modern versions of Python.
25+
- Good performance.
2626

2727
## Getting started
2828

pack.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ for folder in "${folders[@]}" ; do
1616

1717
mkdocs build
1818

19+
# check if there is a copy-archive.sh file, to support including docs
20+
# of older versions of the library
21+
if [ -f "copy-archive.sh" ]; then
22+
echo "File $FILE exists."
23+
./copy-archive.sh
24+
fi
25+
1926
mv site/* ../site/$folder
2027
rm -rf site
2128
cd ../

0 commit comments

Comments
 (0)