mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 17:23:00 +02:00
DOCUMENTATION: Add link to NS API documentation (#1460)
This commit is contained in:
@@ -15,7 +15,6 @@ import SettingsIcon from "@mui/icons-material/Settings";
|
||||
|
||||
import { makeTheme, sanitizeTheme } from "./themes";
|
||||
|
||||
import { CONSTANTS } from "../../Constants";
|
||||
import { Modal } from "../../ui/React/Modal";
|
||||
import { Page } from "../../ui/Router";
|
||||
import { Router } from "../../ui/GameRoot";
|
||||
@@ -23,11 +22,8 @@ import { useBoolean } from "../../ui/React/hooks";
|
||||
import { Settings } from "../../Settings/Settings";
|
||||
import { OptionsModal, OptionsModalProps } from "./OptionsModal";
|
||||
import { useScriptEditorContext } from "./ScriptEditorContext";
|
||||
import { getNsApiDocumentationUrl } from "../../utils/StringHelperFunctions";
|
||||
|
||||
const docUrl =
|
||||
"https://github.com/bitburner-official/bitburner-src/blob/" +
|
||||
(CONSTANTS.isDevBranch ? "dev" : "stable") +
|
||||
"/markdown/bitburner.ns.md";
|
||||
type IStandaloneCodeEditor = monaco.editor.IStandaloneCodeEditor;
|
||||
|
||||
interface IProps {
|
||||
@@ -75,7 +71,7 @@ export function Toolbar({ editor, onSave }: IProps) {
|
||||
Terminal (Ctrl/Cmd + b)
|
||||
</Button>
|
||||
<Typography>
|
||||
<Link target="_blank" href={docUrl}>
|
||||
<Link target="_blank" href={getNsApiDocumentationUrl()}>
|
||||
Documentation
|
||||
</Link>
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user