Move /api to /docs/api

Also make API docs responsive so they can be viewed
on mobile.

REST docs are at /docs/api/rest and WebSocket docs
are at /docs/api/websocket.
This commit is contained in:
hunicus
2021-12-01 17:01:50 -05:00
parent 73f558db6e
commit 23c9bf489a
16 changed files with 1040 additions and 918 deletions

View File

@@ -0,0 +1,21 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-docs',
templateUrl: './docs.component.html',
styleUrls: ['./docs.component.scss']
})
export class DocsComponent implements OnInit {
activeTab = 0;
constructor(
private route: ActivatedRoute,
) { }
ngOnInit(): void {
const url = this.route.snapshot.url;
this.activeTab = ( url[2].path === "rest" ) ? 0 : 1;
}
}