mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-07 11:58:31 +02:00
Restructure Docs - Stage 4a (#2280)
* create Develop and Deploy tabs; move Operations; re-weight pages * move capacity planning page; create section dropdown content * added aliases to frontmatter * update link references to new canonical links; maintain anchoring * address remaining link issues and errors * fix outlier tutorial reference issue * Treat 'develop' and 'deploy' as a unified search space * fix some frontmatter aliases * add section header redirects * fix 'Operations' redirect to go to 'Deploy' tab * update redirects file for * pattern * add :splat to redirect references * Add wildcard to each entry in _redirects file --------- Co-authored-by: Abdon Pijpelink <abdon.pijpelink@qdrant.com>
This commit is contained in:
co-authored by
Abdon Pijpelink
parent
7b463c5ae5
commit
544708f293
@@ -3,13 +3,18 @@ import 'qdrant-page-search/dist/js/search.min.js';
|
||||
(function () {
|
||||
// Try to read metadata tag for partition
|
||||
const metadata = document.querySelector('meta[name="partition"]');
|
||||
let partition = null;
|
||||
if (metadata) {
|
||||
partition = metadata.content;
|
||||
let partition = metadata ? metadata.content : null;
|
||||
|
||||
// Treat 'develop' and 'deploy' as a unified search space
|
||||
let searchPartition;
|
||||
if (partition === 'develop' || partition === 'deploy') {
|
||||
searchPartition = 'develop,deploy,cloud,qdrant';
|
||||
} else {
|
||||
searchPartition = partition;
|
||||
}
|
||||
|
||||
if (/documentation|docs/.test(window.location?.pathname)) {
|
||||
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'documentation', partition: partition });
|
||||
window.initQdrantSearch({ searchApiUrl: 'https://search.qdrant.tech/api/search', section: 'documentation', partition: searchPartition });
|
||||
}
|
||||
|
||||
if (/articles/.test(window.location?.pathname)) {
|
||||
|
||||
Reference in New Issue
Block a user