Allows generating documentation links that are appropriate for the current product (open-source or enterprise) and version. To be used in the next patch to make scylla-nodetool's documentation links product and version appropriate.
25 lines
517 B
C++
25 lines
517 B
C++
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "build_mode.hh"
|
|
|
|
std::string scylla_version();
|
|
|
|
std::string scylla_build_mode();
|
|
|
|
// Generate the documentation link, which is appropriate for the current version
|
|
// and product (open-source or enterprise).
|
|
//
|
|
// Will return a documentation URL like this:
|
|
// https://${product}.docs.scylladb.com/${branch}/${url_tail}
|
|
//
|
|
std::string doc_link(std::string_view url_tail);
|