Skip to content

Commit fb9273d

Browse files
docs: update quickstart to remove "ap doc"
1 parent 320855e commit fb9273d

File tree

10 files changed

+39
-41
lines changed

10 files changed

+39
-41
lines changed

afterpython/_website/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />
5+
<link rel="icon" href="%sveltekit.assets%/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
%sveltekit.head%
88
</head>

afterpython/_website/static/favicon.svg

Lines changed: 1 addition & 1 deletion
Loading

afterpython/_website/static/logo.svg

Lines changed: 1 addition & 1 deletion
Loading

afterpython/blog/myst.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ project:
3434
site:
3535
template: book-theme
3636
# options:
37-
# favicon: favicon.ico
37+
# favicon: favicon.svg
3838
# logo: site_logo.png
3939
# See options at: https://mystmd.org/guide/website-templates#site-options
4040
# See options at: https://mystmd.org/guide/website-templates#site-options
4141
# See options at: https://mystmd.org/guide/website-templates#site-options
4242
options:
43-
favicon: ../static/favicon.ico
43+
favicon: ../static/favicon.svg
4444
logo: ../static/logo.svg
4545
logo_dark: ../static/logo.svg
4646
analytics_google: '{{ GOOGLE_ANALYTICS_ID }}'

afterpython/doc/myst.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ site:
6060
template: book-theme
6161
# See options at: https://mystmd.org/guide/website-templates#site-options
6262
options:
63-
favicon: ../static/favicon.ico
63+
favicon: ../static/favicon.svg
6464
logo: ../static/logo.svg
6565
logo_dark: ../static/logo.svg
6666
logo_text: afterpython

afterpython/doc/quickstart.md

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Quickstart
77

8-
## Installation and Initialization
8+
## Install & Initialize
99

1010
```bash
1111
# install afterpython as a dev dependency
@@ -15,8 +15,6 @@ uv add --dev afterpython
1515
ap init
1616
```
1717

18-
---
19-
## Writing Content
2018
After running `ap init`, the `afterpython/` directory is created and you can start writing content right away.
2119

2220
The structure of `afterpython/` is as follows:
@@ -26,37 +24,40 @@ The structure of `afterpython/` is as follows:
2624
- `afterpython/example/`
2725
- `afterpython/guide/`
2826

29-
All these subdirectories are initialized by `myst init` (see [MyST Markdown]), with a default `index.md` file for each content type.
27+
---
28+
## Project Website
29+
A project website is basically a website that serves as the **homepage for your project**.
3030

31-
For example, to start writing documentation of your project, run `ap doc` to start the development server for the `afterpython/doc/` directory, then create a new `.md` or `.ipynb` file in `afterpython/doc/`.
31+
It aggregates and presents all your content in one place, including documentation, blog posts, tutorials, examples, and how-to guides.
3232

33-
You can then view the documentation at `http://localhost:3000/` (or the port specified by `ap doc --port`).
33+
See [](project_website.md) for more details.
3434

35-
Similarly, you can start the development server for other content types by running `ap blog`, `ap tutorial`, `ap example`, or `ap guide`, and then create `.md` or `.ipynb` files in the corresponding directory.
35+
---
36+
## Develop
3637

37-
:::{seealso}
38-
To learn more about how to arrange your content, see [Table of Contents] or a [Quick Guide about myst.yml](walkthrough/myst_yml.md).
39-
:::
38+
### Starting Development Servers
4039

41-
---
42-
## Project Website
43-
A project website is basically a website that serves as the **homepage for your project**.
40+
AfterPython provides two ways to work with content:
4441

45-
It sits on top of your content, including documentation, blog posts, tutorials, examples, and guides.
42+
1. **Project Website Only** - Run `ap dev` to start the development server for your project website.
4643

47-
You can run `ap dev` to start the development server for the project website to see how everything looks and works together.
44+
2. **Individual Content Development** - Run `ap dev` with flags to work on specific content types:
45+
- `ap dev --doc` - Documentation
46+
- `ap dev --blog` - Blog posts
47+
- `ap dev --tutorial` - Tutorials
48+
- `ap dev --example` - Examples
49+
- `ap dev --guide` - Guides
50+
- `ap dev --all` - Everything at once (all content types + project website)
4851

49-
Note that this server is **independent** from the development servers for your content — you need to run `ap doc` to start another server for the *Documentation tab* in your website to work.
52+
When using flags, a MyST development server starts for that specific content folder (e.g., `afterpython/doc/`), allowing you to write and preview content in `.md` or `.ipynb` files with live reload.
5053

51-
For convenience, you can run `ap dev --all` to start the development server for all content types and the project website at once, so that you don't need to run `ap doc`, `ap blog`, `ap tutorial`, `ap example`, or `ap guide` separately.
54+
### Content Organization
5255

53-
:::{tip} Standard Workflow
54-
The typical workflow is:
55-
- Run `ap doc` (and other content types) and start writing content
56-
- When finished, run `ap dev --all` to see what the final project website looks like
57-
:::
56+
All content folders in `afterpython/` (e.g., `afterpython/doc/`, `afterpython/blog/`) are initialized by `myst init` (see [MyST Markdown]), and **each** has a default `index.md` file and a `myst.yml` file for configuration.
5857

59-
See [](project_website.md) for more details.
58+
:::{seealso}
59+
To learn more about how to arrange your content in the content folders, see [Table of Contents] or a [Quick Guide about myst.yml](walkthrough/myst_yml.md).
60+
:::
6061

6162
---
6263
## Build & Preview
@@ -73,14 +74,11 @@ By default, it will be triggered for deployment when you push any content change
7374
- write content in a different branch, or
7475
- disable the workflow by commenting out the `on: push` section in the `deploy.yml` file
7576

77+
*[MyST] is the document engine that powers `afterpython`. You may want to read the [Quick Guide to MyST](myst.md) to understand what you can do with it before writing content.*
7678

79+
---
7780
:::{important} `afterpython` badge
7881
To support `afterpython`, consider adding this badge [![afterpython](https://afterpython.org/shield.svg)](https://afterpython.org) to your python project's `README.md` by writing:
7982

8083
`[![afterpython](https://afterpython.org/shield.svg)](https://afterpython.org)`
8184
:::
82-
83-
:::{seealso} Quick Guide to MyST
84-
:class: dropdown
85-
[MyST] is the document engine that powers `afterpython`. You may want to read the [Quick Guide to MyST](myst.md) to understand what you can do with it before writing content.
86-
:::

afterpython/example/myst.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ project:
3434
site:
3535
template: book-theme
3636
# options:
37-
# favicon: favicon.ico
37+
# favicon: favicon.svg
3838
# logo: site_logo.png
3939
# See options at: https://mystmd.org/guide/website-templates#site-options
4040
# See options at: https://mystmd.org/guide/website-templates#site-options
4141
# See options at: https://mystmd.org/guide/website-templates#site-options
4242
options:
43-
favicon: ../static/favicon.ico
43+
favicon: ../static/favicon.svg
4444
logo: ../static/logo.svg
4545
logo_dark: ../static/logo.svg
4646
analytics_google: '{{ GOOGLE_ANALYTICS_ID }}'

afterpython/guide/myst.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ project:
3434
site:
3535
template: book-theme
3636
# options:
37-
# favicon: favicon.ico
37+
# favicon: favicon.svg
3838
# logo: site_logo.png
3939
# See options at: https://mystmd.org/guide/website-templates#site-options
4040
# See options at: https://mystmd.org/guide/website-templates#site-options
4141
# See options at: https://mystmd.org/guide/website-templates#site-options
4242
options:
43-
favicon: ../static/favicon.ico
43+
favicon: ../static/favicon.svg
4444
logo: ../static/logo.svg
4545
logo_dark: ../static/logo.svg
4646
analytics_google: '{{ GOOGLE_ANALYTICS_ID }}'

afterpython/tools/myst.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def init_myst():
154154
},
155155
"site": {
156156
"options": {
157-
"favicon": "../static/favicon.ico",
157+
"favicon": "../static/favicon.svg",
158158
"logo": "../static/logo.svg",
159159
"logo_dark": "../static/logo.svg",
160160
"analytics_google": "{{ GOOGLE_ANALYTICS_ID }}",

afterpython/tutorial/myst.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ project:
3434
site:
3535
template: book-theme
3636
# options:
37-
# favicon: favicon.ico
37+
# favicon: favicon.svg
3838
# logo: site_logo.png
3939
# See options at: https://mystmd.org/guide/website-templates#site-options
4040
# See options at: https://mystmd.org/guide/website-templates#site-options
4141
# See options at: https://mystmd.org/guide/website-templates#site-options
4242
options:
43-
favicon: ../static/favicon.ico
43+
favicon: ../static/favicon.svg
4444
logo: ../static/logo.svg
4545
logo_dark: ../static/logo.svg
4646
analytics_google: '{{ GOOGLE_ANALYTICS_ID }}'

0 commit comments

Comments
 (0)