Skip to content

Commit 813f17d

Browse files
authored
Merge pull request #147 from PrefectHQ/docs-home
Update docs home page with license agreement
2 parents ef80cb4 + 0656a76 commit 813f17d

File tree

5 files changed

+118
-44
lines changed

5 files changed

+118
-44
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ Prefect requires Python 3.4+.
2424

2525
### Install
2626

27+
This will install optional visualization utilities:
2728
```bash
2829
git clone https://github.com/PrefectHQ/prefect.git
2930
cd prefect
30-
pip install .
31+
pip install ".[viz]"
3132
```
3233

3334
## Development
@@ -37,7 +38,7 @@ pip install .
3738
```bash
3839
git clone https://github.com/PrefectHQ/prefect.git
3940
cd prefect
40-
pip install -e .[dev]
41+
pip install -e ".[dev]"
4142
```
4243

4344
### Run unit tests
@@ -49,9 +50,10 @@ pytest
4950

5051
### Build documentation
5152

52-
To view documentation locally (run this from the root `prefect` directory):
53+
To view documentation locally:
5354

5455
```bash
56+
cd prefect
5557
yarn docs:dev
5658
```
5759

docs/README.md

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,46 @@
11
---
22
home: true
33
heroImage: /Logo.svg
4-
actionText: Get Started →
5-
actionLink: /introduction
6-
features:
7-
- title: Automate all the things
8-
details: If you can do it with Python, you can automate it with Prefect.
9-
- title: Test local, deploy global
10-
details: Workflows are developed and tested locally, then deployed for execution at scale.
11-
- title: Simple but powerful
12-
details: Prefect's beautiful API is powered by Dask and Kubernetes, so it's ready for anything.
134
footer: Copyright © 2018-present Prefect Technologies, Inc.
145
---
15-
16-
## Prefect
6+
<div class='hero'>
7+
<div style="display: flex;">
8+
<p class='action'>
9+
<router-link to="introduction.html" class="nav-link action-button">Read the docs</router-link>
10+
</p>
11+
<p class='action'>
12+
<router-link to="agreement.html" class="nav-link action-button">Get the code</router-link>
13+
</p>
14+
</div>
15+
<p style="font-size: 13px; font-style: italic;">
16+
Prefect is alpha software under active development by Prefect Technologies, Inc. This early preview is being provided to a limited number of partners to assist with development. By viewing or using the code or documentation, you are agreeing to the <a href='license.html'>alpha software end user license agreement</a>.
17+
</p>
18+
</div>
19+
20+
<div class='features'>
21+
<div class='feature'>
22+
<h2>Automate all the things</h2>
23+
<p>If you can do it with Python, you can automate it with Prefect.</p>
24+
</div>
25+
<div class='feature'>
26+
<h2>Test local, deploy global</h2>
27+
<p>Workflows are developed and tested locally, then deployed for execution at scale.</p>
28+
</div>
29+
<div class='feature'>
30+
<h2>Simple but powerful</h2>
31+
<p>Prefect's beautiful API is powered by Dask and Kubernetes, so it's ready for anything.</p>
32+
</div>
33+
</div>
34+
<div class='features' style="padding-bottom: 0px; margin-top: 1em;"></div>
35+
36+
### Prefect
1737

1838
We've reimagined data engineering for the data science era. Prefect is a new workflow management system, designed for modern infrastructure. Users organize `Tasks` into `Flows`, and Prefect takes care of the rest.
1939

20-
Read the [docs](/introduction.html); get the [code](https://github.com/prefecthq/prefect); ask us [anything](mailto:help@prefect.io)!
21-
22-
## License
23-
24-
Prefect is alpha software under active development by Prefect Technologies, Inc. This early preview is being provided to a limited number of partners to assist with development. By viewing or using the code or documentation, you are agreeing to the [alpha software end user license agreement](/license.html).
40+
Read the [docs](/introduction.html); get the [code](/agreement.html); ask us [anything](mailto:help@prefect.io)!
2541

2642

27-
## Hello, world!
43+
### Hello, world! 👋
2844

2945
```python
3046
from prefect import task, Flow

docs/agreement.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
sidebar: false
3+
editLink: false
4+
---
5+
6+
# License Agreement
7+
8+
Prefect is alpha software under active development by Prefect Technologies, Inc. This early preview is being provided to a limited number of partners to assist with development. By viewing or using the code, you are agreeing to the [alpha software end user license agreement](license.html).
9+
10+
11+
<div class='home' style='padding-top: 0px;'>
12+
<div class='hero'>
13+
<p class='action'>
14+
<a href="https://github.com/PrefectHQ/prefect" class="nav-link action-button">Ok!</a>
15+
</p>
16+
</div>
17+
</div>

docs/generate_docs.py

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,29 @@ def generate_coverage():
394394
"*</sub>".format(short_sha=SHORT_SHA, git_sha=GIT_SHA)
395395
)
396396

397+
front_matter = textwrap.dedent(
398+
"""
399+
---
400+
sidebarDepth: 1
401+
editLink: false
402+
---
403+
"""
404+
).lstrip()
405+
397406
shutil.rmtree("api", ignore_errors=True)
398407
os.makedirs("api", exist_ok=True)
399408
generate_coverage()
400409
with open("api/README.md", "w+") as f:
410+
f.write(
411+
textwrap.dedent(
412+
"""
413+
---
414+
sidebarDepth: 0
415+
editLink: false
416+
---
417+
"""
418+
).lstrip()
419+
)
401420
f.write("# API Reference\n")
402421
f.write(
403422
"*This documentation was auto-generated from "
@@ -428,17 +447,7 @@ def generate_coverage():
428447
os.makedirs(directory, exist_ok=True)
429448
with open(fname, "w") as f:
430449
# PAGE TITLE / SETUP
431-
f.write(
432-
textwrap.dedent(
433-
"""
434-
---
435-
sidebarDepth: 1
436-
editLink: false
437-
---
438-
439-
"""
440-
).lstrip()
441-
)
450+
f.write(front_matter)
442451
title = page.get("title")
443452
if title: # this would be a good place to have assignments
444453
f.write(f"# {title}\n---\n")

docs/introduction.md

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,66 @@ sidebarDepth: 0
88

99
Thank you for being one of our early partners. Your feedback is critical to making sure Prefect does everything it's supposed to do. You can always reach us at [help@prefect.io]().
1010

11-
We're very excited to share what we've been working on. This first preview release is `v0.3.0`, and includes all the tools for building, testing, and executing workflows locally.
11+
We're very excited to share what we've been working on. This first preview release is `0.3.0`, which includes all the tools for building, testing, and executing workflows locally.
1212

13-
You may find a few dead-ends as you poke around the code -- many of those will become functional when we release our server and execution platforms in future preview releases.
13+
### Overview
1414

15-
## License
15+
Prefect is a new workflow management system designed for modern data infrastructures.
1616

17-
Prefect is alpha software under active development by Prefect Technologies, Inc. This early preview is being provided to a limited number of partners to assist with development. By viewing or using the code or documentation, you are agreeing to the [alpha software end user license agreement](/license.html).
17+
Users organize `Tasks` into `Flows`, and Prefect takes care of the rest! With a minimal but expressive API and intelligent defaults, it stays out of your way until you need it.
1818

19-
## Overview
19+
### What works now 🚀
2020

21-
Prefect is a new workflow management system designed for modern data infrastructures.
21+
Prefect `0.3.0` is a nearly-complete implementation of Prefect's core workflow logic. We're confident it can be used to design a wide variety of data workflows, and we're ready for you to kick the tires!
2222

23-
Users organize `Tasks` into `Flows`, and Prefect takes care of the rest! With a minimal but expressive API and intelligent defaults, it stays out of your way until you need it.
23+
This release supports:
24+
25+
- designing custom `Tasks`
26+
- composing tasks into `Flows` with either a functional or imperative API
27+
- `FlowRunners` and `TaskRunners` for complete management of the workflow execution process, including all possible state transitions
28+
- advanced execution patterns including automatic caching, triggers, pausing, dataflow, and retries
29+
- basic visualization (static GraphViz charts and animated Bokeh applications)
30+
31+
### What's coming soon ⏰
32+
33+
Prefect `0.3.0` does not include a few important features that will be available in future preview releases. Some of those features include:
34+
35+
- our scheduler, server, database, UI, and GraphQL API
36+
- a standard library of tasks
37+
- building flows as containers for distribution
38+
- remote execution clusters
39+
- Airflow backward-compatibility
40+
41+
Stay tuned for more...
42+
43+
### What we'd love to hear 📢
44+
45+
- Do you have a data engineering or data science use case that can't be expressed with Prefect's design tools?
46+
- Do you have a use case that **can** be expressed, but you think it could be easier?
47+
- Are any of our naming conventions or design choices confusing or non-obvious?
48+
- As we get closer to releasing the platform tools (including UI and API), what features are important to you? How do you want to interact with your data?
49+
50+
Please note that Prefect is alpha software under active development by Prefect Technologies, Inc. This early preview is being provided to a limited number of partners to assist with development. By viewing or using the code or documentation, you are agreeing to the [alpha software end user license agreement](/license.html).
2451

2552
## "...Prefect?"
2653

27-
From the Latin *praefectus*, meaning "one who is in charge", a prefect is an official who oversees a domain and ensures that work is done correctly.
54+
From the Latin _praefectus_, meaning "one who is in charge", a prefect is an official who oversees a domain and ensures that work is done correctly.
2855

29-
It also happens to be the name of a roving researcher for that wholly remarkable book, *The Hitchhiker's Guide to the Galaxy*.
56+
It also happens to be the name of a roving researcher for that wholly remarkable book, _The Hitchhiker's Guide to the Galaxy_.
3057

31-
## Getting Started
58+
## Installation
3259

33-
### Install Prefect
60+
:::tip Requirements
3461
Please note Prefect requires Python 3.4 or higher.
62+
:::
3563

3664
```
3765
git clone https://github.com/PrefectHQ/prefect.git
3866
cd prefect
39-
pip install .
67+
pip install -e ".[viz]"
4068
```
69+
To install all development dependencies (for running unit tests): `pip install -e ".[dev]"`
70+
71+
## What's Next?
4172

42-
### Use Prefect
4373
Check out our [tutorials](tutorials/) or [API reference docs](api/)... or just `import prefect`.

0 commit comments

Comments
 (0)