Skip to content

Commit

Permalink
[WIP] Migrate to MkDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Nov 14, 2023
1 parent 7fce094 commit 2c35fce
Show file tree
Hide file tree
Showing 111 changed files with 579 additions and 318 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: GitHub Pages

on:
push:
branches:
- mkdocs # temporary
paths-ignore:
- README.md
- CONTRIBUTING.md
- CMakeLists.txt
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: fkirc/skip-duplicate-actions@v5
with:
cancel_others: 'true'
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for the 'Last updated' timestamp
- name: Install requirements
run: pip install -r requirements.txt
- name: Build site
run: mkdocs build
- uses: crazy-max/ghaction-github-pages@v4
with:
build_dir: site
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
30 changes: 0 additions & 30 deletions .github/workflows/gitbook.yml

This file was deleted.

16 changes: 3 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
# .gitignore
## Files we want to have locally, but do not want to push to remote

## Editor swap files
*~
*.swp
*.orig

## CMake and C/C++
## CMake build system
**/build*/
CMakeLists.txt.user
*.cproject
*.project
tags

## doxygen
doc/html
doc/doxygen_sqlite3.db

## gitbook generated
/_book/
/node_modules/
## mkdocs generated
/site/
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ Please read the Developer Manual's [Asking Questions](https://robots.uc3m.es/dev

It is useful to serve on `localhost` to modify the website and see changes locally.

1. From the root of the project, run the following command (which is universal for all [Gitbook (legacy)](https://github.com/GitbookIO/gitbook)-based projects):
1. From the root of the project, run the following command:

```bash
gitbook serve # command builds and serves; for installing required plugins, before first run please: gitbook install
pip install -r requirements.txt
mkdocs serve
```

1. You can now browse the site at the default location: <http://127.0.0.1:4000>
1. You can now browse the site at the default location: <http://127.0.0.1:8000>

### How to upload changes to GitHub

This project is managed as any project on [GitHub](https://www.github.com). You may use [Git](https://git-scm.com) or even the GitHub web interface, both on which you can find many tutorials online. The following points are specific to the [Gitbook (legacy)](https://github.com/asrob-uc3m/actas/issues/148#issuecomment-449748350) mechanism used:
This project is managed as any project on [GitHub](https://www.github.com). You may use [Git](https://git-scm.com) or even the GitHub web interface, both on which you can find many tutorials online. The following points are specific to the MkDocs mechanism used:

1. Please **do not upload** the `_book/` folder. It is auto-generated locally, and the same should happen on the Gitbook (legacy) servers.
1. Please **do not upload** the `site/` folder. It is auto-generated locally, and the same should happen on the MkDocs servers.

1. It is safe to `git push` to any upstream branch, just remember that what is on `master` is what will be actually rendered as the website.
27 changes: 0 additions & 27 deletions SUMMARY.md

This file was deleted.

18 changes: 0 additions & 18 deletions book.json

This file was deleted.

File renamed without changes.
File renamed without changes.
Binary file added docs/assets/favicon.ico
Binary file not shown.
235 changes: 235 additions & 0 deletions docs/assets/roboticslab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2c35fce

Please sign in to comment.