Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
123 changes: 0 additions & 123 deletions .github/workflows/crowdin-download-workflow.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/workflows/crowdin-manual-workflow.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/crowdin-upload-workflow.yml

This file was deleted.

62 changes: 0 additions & 62 deletions CROWDIN.md

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ RUN apt-get update && apt-get install --no-install-recommends -y gpg curl git ma
apt-get update && apt-get install -y nodejs yarn && apt-get clean

COPY . /app/
ARG BUILD_TRANSLATIONS="False"

RUN yarn cache clean --all
RUN yarn install --frozen-lockfile
Expand All @@ -24,12 +23,6 @@ RUN yarn stellar-cli:build --no-minify --cli-ref=main
RUN yarn stellar-cli:fix-links

ENV NODE_OPTIONS="--max-old-space-size=4096"
# RUN if [ "$BUILD_TRANSLATIONS" = "True" ]; then \
# yarn docusaurus build --no-minify; \
# else \
# # In the preview build, we only want to build for English. Much quicker
# yarn build --no-minify; \
# fi
RUN yarn build --no-minify

FROM nginx:1.29
Expand Down
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ LABEL ?= $(shell git rev-parse --short HEAD)$(and $(shell git status -s),-dirty-
TAG ?= stellar/stellar-docs:$(LABEL)
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
BUILD_DATE := $(shell date -u +%FT%TZ)
# If we're not in production, don't build translations
BUILD_TRANSLATIONS ?= "False"

# the app label is used by the pipelines to prune docker dangling images on the jenkins build hosts
docker-build:
$(SUDO) docker build -m 8g --no-cache --pull --label app="stellar-docs" --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) . --build-arg BUILD_TRANSLATIONS=${BUILD_TRANSLATIONS}
$(SUDO) docker build -m 8g --no-cache --pull --label app="stellar-docs" --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) .

docker-push:
$(SUDO) docker push $(TAG)
12 changes: 0 additions & 12 deletions config/constants.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
export const DEFAULT_LOCALE: string = 'en';
export const LOCALE_FULL_CODE: Record<string, string> = {
es: 'es-ES',
};

export const makeEditUrl = ({ locale, versionDocsDirPath, docPath }) => {
if (locale !== DEFAULT_LOCALE) {
return `https://crowdin.com/project/stellar-dev-docs/${LOCALE_FULL_CODE[locale]}`
}
return `https://github.com/stellar/stellar-docs/edit/main/${versionDocsDirPath}/${docPath}`
};

export const CODE_LANGS = {
bash: 'bash',
cpp: 'C++',
Expand Down
4 changes: 0 additions & 4 deletions config/theme/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,6 @@ const translation: NavbarItem[] = [
position: 'right',
value: GOOGLE_TRANSLATE_ELEMENT,
},
// {
// type: 'localeDropdown',
// position: 'right',
// },
]

export default {
Expand Down
25 changes: 0 additions & 25 deletions crowdin.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import { themes as prismThemes } from 'prism-react-renderer';

// import { makeEditUrl, DEFAULT_LOCALE, GOOGLE_TRANSLATE_ELEMENT } from './config/constants';
import navbarItems from './config/theme/navbar';
import footerColumns from './config/theme/footer';
import { headTags } from './config/theme/headTags';
Expand All @@ -27,10 +26,6 @@ const config: Config = {
favicon: "img/docusaurus/favicon-96x96.png",
organizationName: "stellar",
projectName: "stellar-docs",
// i18n: {
// defaultLocale: DEFAULT_LOCALE,
// locales: ["en", "es"],
// },
scripts: [
{
src: 'https://translate.google.com/translate_a/element.js',
Expand Down Expand Up @@ -121,7 +116,6 @@ const config: Config = {
rehypePlugins: [rehypeKatex],
sidebarPath: "config/sidebars.ts",
sidebarItemsGenerator: require("./src/sidebar-generator"),
// editUrl: makeEditUrl,
editUrl: "https://github.com/stellar/stellar-docs/edit/main",
exclude: ['**/component/**', '**/CONTRIBUTING.md'],
},
Expand Down
Loading
Loading