You could use a routing map here:
```python
paths = {
  "dev": "docs/developers",
  "author": "docs/course_authors",
  "data": "docs/data",
}
path = paths.get(type, "docs/developers")
```