-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standup our user-docs for https://docs.pypi.org/
- Loading branch information
Showing
14 changed files
with
508 additions
and
5 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
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,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Click requires us to ensure we have a well configured environment to run | ||
# our click commands. So we'll set our environment to ensure our locale is | ||
# correct. | ||
export LC_ALL="${ENCODING:-en_US.UTF-8}" | ||
export LANG="${ENCODING:-en_US.UTF-8}" | ||
|
||
# Print all the following commands | ||
set -x | ||
|
||
mkdocs build -f user-docs/mkdocs.yml |
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,3 @@ | ||
mkdocs | ||
mkdocs-material | ||
packaging<=21.3 |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./site |
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,21 @@ | ||
# PyPI User Facing Documentation | ||
|
||
This documentation is (will be) hosted at https://docs.pypi.org/ to provide | ||
user-facing documentation for using PyPI. | ||
|
||
Documentation is written in [Markdown](https://www.markdownguide.org) and built | ||
using [mkdocs](https://www.mkdocs.org). | ||
|
||
The documentation is (will be) built and deployed with [readthedocs.org](https://readthedocs.org/projects/docspypiorg/). | ||
|
||
See our [`.readthedocs.yml`](../.readthedocs.yml) for configuration. | ||
|
||
## Setup | ||
|
||
After following the [installation instructions](https://warehouse.pypa.io/development/getting-started.html#detailed-installation-instructions) | ||
all the remaining commands take place in containers. | ||
|
||
The project can be previewed by running `docker compose up user-docs` from the | ||
base directory of your clone of pypa/warehouse. This will start a `mkdocs` | ||
development server that will live reload as you change the contents of this | ||
directory, including the `mkdocs.yml` configuration. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
# Welcome to MkDocs | ||
|
||
For full documentation visit [mkdocs.org](https://www.mkdocs.org). | ||
|
||
## Commands | ||
|
||
* `mkdocs new [dir-name]` - Create a new project. | ||
* `mkdocs serve` - Start the live-reloading docs server. | ||
* `mkdocs build` - Build the documentation site. | ||
* `mkdocs -h` - Print help message and exit. | ||
|
||
## Project layout | ||
|
||
mkdocs.yml # The configuration file. | ||
docs/ | ||
index.md # The documentation homepage. | ||
... # Other markdown pages, images and other files. |
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,16 @@ | ||
site_name: PyPI Docs | ||
docs_dir: . | ||
theme: | ||
name: material | ||
logo: assets/logo.png | ||
favicon: assets/favicon.ico | ||
homepage: https://pypi.org | ||
extra_css: | ||
- stylesheets/extra.css | ||
extra: | ||
homepage: https://pypi.org | ||
social: | ||
- icon: fontawesome/brands/github | ||
link: https://github.com/pypi | ||
- icon: fontawesome/brands/twitter | ||
link: https://twitter.com/pypi |
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,3 @@ | ||
:root { | ||
--md-primary-fg-color: #0073b7; | ||
} |