Skip to content

Commit

Permalink
docs: create a basic homepage for the docs website
Browse files Browse the repository at this point in the history
Before, https://martinvonz.github.io/jj/latest redirected to
https://martinvonz.github.io/jj/latest/install-and-setup.html.

Now, it will direct people to a basic page with a link to
the repo and a few other useful pages.

An additional motivation is the desire to have a homepage to
link to from
#2273 (comment).

Better something very basic than nothing.
  • Loading branch information
ilyagr committed Oct 4, 2023
1 parent be3d588 commit 2218143
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
23 changes: 23 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Jujutsu—a version control system

## Welcome to `jj`'s documentation website!

<!-- This only applies to the website, not to the GitHub interface -->
The complete list of the documentation pages available is available in the
sidebar.

Additional help is available using the `jj help` command if you have `jj`
installed.

You may want to jump to:

- Documentation for the [latest released version of `jj`](https://martinvonz.github.io/jj/latest).
- Documentation for the [unreleased version of `jj`](https://martinvonz.github.io/jj/prerelease). This version of the docs corresponds to the `main` branch of the `jj` repo.

## Some useful links

- [GitHub repo for `jj`](https://github.com/martinvonz/jj)
- Overview of `jj` in the repo's [README](https://github.com/martinvonz/jj?tab=readme-ov-file#jujutsu-vcs)
- [Installation and Setup](install-and-setup.md)
- [Tutorial and Birds-Eye View](tutorial.md)
- [Working with GitHub](github.md)
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ plugins:
- search
- redirects:
redirect_maps:
'index.md': 'install-and-setup.md'

# Not all of these may be necessary, especially since the material
# theme substitutes for some of them
Expand All @@ -38,6 +37,8 @@ markdown_extensions:

# This lists all the files that become part of the documentation
nav:
- 'Home': 'index.md'

- 'Getting started':
- 'Installation and Setup': 'install-and-setup.md'
- 'Tutorial and Birds-Eye View': 'tutorial.md'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ python = "^3.8"
[tool.poetry.dev-dependencies]
mkdocs = "^1.5.2"
mkdocs-material = "^9.2.5"
# Makes `install-and-setup.md` open by default instead of `index.md`.
# Allows setting up redirects when renaming docs files
mkdocs-redirects = "^1.2.1"
# Versioning of documentation
mike = "^1.1.2"
Expand Down

0 comments on commit 2218143

Please sign in to comment.