Skip to content

Commit f76efaf

Browse files
committed
Remove docs submodule and add a link to it
1 parent f6431e7 commit f76efaf

File tree

12 files changed

+4
-100
lines changed

12 files changed

+4
-100
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "src/backend/public/algorithms"]
22
path = src/backend/public/algorithms
33
url = [email protected]:algorithm-visualizer/algorithms.git
4-
[submodule "src/backend/public/docs"]
5-
path = src/backend/public/docs
6-
url = [email protected]:algorithm-visualizer/tracers.wiki.git

app/backend.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const proxy = require('http-proxy-middleware');
22
const {
3-
__PROD__,
43
__DEV__,
54
proxyPort,
65
backendBuildPath,

app/frontend.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
const express = require('express');
22

33
const {
4-
__PROD__,
54
__DEV__,
65
frontendSrcPath,
7-
algorithmApiSrcPath,
8-
wikiApiSrcPath,
96
frontendBuildPath,
10-
apiEndpoint,
117
} = require('../environment');
128

139
if (__DEV__) {

src/backend/controllers/docs.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/backend/controllers/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export { default as auth } from './auth';
22
export { default as categories } from './categories';
33
export { default as compilers } from './compilers';
4-
export { default as docs } from './docs';

src/backend/public/docs

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/frontend/apis/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ const CategoryApi = {
5858
getAlgorithm: GET('/categories/:categoryKey/:algorithmKey'),
5959
};
6060

61-
const DocApi = {
62-
getDocs: GET('/docs'),
63-
getDoc: GET('/docs/:docKey'),
64-
};
65-
6661
const GitHubApi = {
6762
auth: token => axios.defaults.headers.common['Authorization'] = `token ${token}`,
6863
getProfile: GET('https://api.github.com/user'),
@@ -86,7 +81,6 @@ const CompilerApi = {
8681

8782
export {
8883
CategoryApi,
89-
DocApi,
9084
GitHubApi,
9185
CompilerApi,
9286
};

src/frontend/components/App/index.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
TabContainer,
1515
ToastContainer,
1616
VisualizationViewer,
17-
WikiViewer,
1817
} from '/components';
1918
import { CategoryApi, GitHubApi } from '/apis';
2019
import { tracerManager } from '/core';
@@ -199,11 +198,10 @@ class App extends React.Component {
199198
visibles={[navigatorOpened, true, true]}
200199
onChangeWeights={weights => this.handleChangeWorkspaceWeights(weights)}>
201200
<Navigator loadAlgorithm={params => this.loadAlgorithm(params)} />
202-
<TabContainer titles={['Description', 'Visualization', 'Tracer API']} tabIndex={viewerTabIndex}
201+
<TabContainer titles={['Description', 'Visualization']} tabIndex={viewerTabIndex}
203202
onChangeTabIndex={tabIndex => this.handleChangeViewerTabIndex(tabIndex)}>
204203
<MarkdownViewer source={readmeFile ? readmeFile.content : 'README.md not found'} />
205204
<VisualizationViewer />
206-
<WikiViewer />
207205
</TabContainer>
208206
<TabContainer titles={[...files.map(file => file.name), <FontAwesomeIcon fixedWidth icon={faPlus} />]}
209207
tabIndex={editorTabIndex}

src/frontend/components/Navigator/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { connect } from 'react-redux';
33
import FontAwesomeIcon from '@fortawesome/react-fontawesome'
44
import faSearch from '@fortawesome/fontawesome-free-solid/faSearch';
55
import faCode from '@fortawesome/fontawesome-free-solid/faCode';
6+
import faBook from '@fortawesome/fontawesome-free-solid/faBook';
67
import faGithub from '@fortawesome/fontawesome-free-brands/faGithub';
78
import { ExpandableListItem, ListItem } from '/components';
89
import { classes } from '/common/util';
@@ -122,6 +123,8 @@ class Navigator extends React.Component {
122123
<ListItem icon={faCode} label="Scratch Paper"
123124
onClick={() => this.props.showSuccessToast('Sign In Required')} />
124125
}
126+
<ListItem icon={faBook} label="Tracers API"
127+
href="https://github.com/algorithm-visualizer/tracers/wiki" />
125128
<ListItem icon={faGithub} label="Fork me on GitHub"
126129
href="https://github.com/algorithm-visualizer/algorithm-visualizer" />
127130
</div>

src/frontend/components/WikiViewer/index.jsx

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)