Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions themes/mongodb/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ TARGETS=../static/mongodb-docs.css \
../static/landing.css \
../static/navbar.min.css \
../static/controller.js \
../static/feedback.min.js \
../static/feedback.css \
../static/navbar.min.js \
../static/landing.min.js
POSTCSS=./node_modules/.bin/postcss
Expand All @@ -30,12 +32,19 @@ all: $(TARGETS)
$(POSTCSS) css/landing/landing.css -c postcss.config.js -o $@

# Manual properties
../static/controller.js: js/*.js widgets/*/*.js widgets/*.js rollup.config.js node_modules/.CURRENT
$(ROLLUP) -c rollup.config.js -o $@ js/controller.js
../static/controller.js: main/controller.js js/*.js widgets/*/*.js widgets/*.js rollup.config.js node_modules/.CURRENT
$(ROLLUP) -c rollup.config.js -o $@ main/controller.js

../static/mongodb-docs.css: css/manual/*.css css/*.css postcss.config.js node_modules/.CURRENT
$(POSTCSS) css/manual/mongodb-docs.css -c postcss.config.js -o $@

# Standalone feedback widgets
../static/feedback.css: css/feedback.css css/fonts.css postcss.config.js node_modules/.CURRENT
$(POSTCSS) css/feedback.css -c postcss.config.js -o $@

../static/feedback.min.js: main/feedbackController.js widgets/*/*.js widgets/*.js rollup.config.js node_modules/.CURRENT
$(ROLLUP) -c rollup.config.js -o $@ main/feedbackController.js

# Guides
../static/guides.css: css/guides/*.css css/*.css postcss.config.js node_modules/.CURRENT
$(POSTCSS) css/guides/guides.css -c postcss.config.js -o $@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import * as componentAccordion from './componentAccordion';
import * as componentAtlas from './componentAtlas';
import * as componentCloseOpen from './componentCloseOpen';
import * as componentCodeBlockFix from './componentCodeBlockFix';
import * as componentCopyButtons from './componentCopyButtons';
import * as componentFastLoad from './componentFastLoad';
import * as componentFeedback from './componentFeedback';
import * as componentGuides from './componentGuides';
import * as componentLightbox from './componentLightbox';
import * as componentOpenAPI from './componentOpenAPI';
import * as componentPillStrip from './componentPillStrip';
import * as componentSidebar from './componentSidebar';
import * as componentStitchSidebar from './componentStitchSidebar';
import * as componentTabs from './componentTabs';
import * as componentThirdParty from './componentThirdParty';
import * as componentToggleController from './componentToggleController';
import * as componentUriWriter from './componentUriwriter';
import * as componentVersionSelector from './componentVersionSelector';
import * as componentAccordion from '../js/componentAccordion';
import * as componentAtlas from '../js/componentAtlas';
import * as componentCloseOpen from '../js/componentCloseOpen';
import * as componentCodeBlockFix from '../js/componentCodeBlockFix';
import * as componentCopyButtons from '../js/componentCopyButtons';
import * as componentFastLoad from '../js/componentFastLoad';
import * as componentFeedback from '../js/componentFeedback';
import * as componentGuides from '../js/componentGuides';
import * as componentLightbox from '../js/componentLightbox';
import * as componentOpenAPI from '../js/componentOpenAPI';
import * as componentPillStrip from '../js/componentPillStrip';
import * as componentSidebar from '../js/componentSidebar';
import * as componentStitchSidebar from '../js/componentStitchSidebar';
import * as componentTabs from '../js/componentTabs';
import * as componentThirdParty from '../js/componentThirdParty';
import * as componentToggleController from '../js/componentToggleController';
import * as componentUriWriter from '../js/componentUriwriter';
import * as componentVersionSelector from '../js/componentVersionSelector';

class FastNav {
constructor() {
Expand Down
10 changes: 10 additions & 0 deletions themes/mongodb/src/main/feedbackController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import * as componentFeedback from '../js/componentFeedback';

$(() => {
// Monkey-patch jQuery to add the removed load() event handler.
// This is required by the JIRA issue collector 🙄
jQuery.fn.load = function(callback) { $(window).on('load', callback); };

componentFeedback.init();
componentFeedback.setup();
});
2 changes: 1 addition & 1 deletion themes/mongodb/static/controller.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions themes/mongodb/static/feedback.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions themes/mongodb/static/feedback.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions themes/mongodb/static/feedback.min.js.map

Large diffs are not rendered by default.