Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docfy - no more addon-docs. #355

Merged
merged 23 commits into from
May 21, 2021
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7b869ef
refact: remove addon-docs
LevelbossMike May 11, 2021
da6789d
refact: use docfy for docs
LevelbossMike May 11, 2021
f2faf64
docs: add custom demo component tutorial
LevelbossMike May 18, 2021
22d3fd0
docs: convert statecharts docs to new demo
LevelbossMike May 18, 2021
529cc39
docs: add page-nav
LevelbossMike May 18, 2021
8e87c45
docs: add page title to page-nav
LevelbossMike May 19, 2021
0e06d3f
docs: scroll to top on route transitions
LevelbossMike May 19, 2021
d169456
docs: mobile nav and sticky side nav
LevelbossMike May 19, 2021
789dcae
docs: fix footer link to documentation
LevelbossMike May 19, 2021
0b92d4c
docs: generate typedoc api-docs
LevelbossMike May 19, 2021
f88c974
docs: use generated api-docs
LevelbossMike May 19, 2021
c6bc3f9
docs: better typedocs for api reference
LevelbossMike May 21, 2021
811f995
docs: use prember
LevelbossMike May 19, 2021
ce1022a
docs: fix small fastboot issues
LevelbossMike May 19, 2021
5a05059
ci: use node 12
LevelbossMike May 19, 2021
f8731c5
docs: fix template-lint errors
LevelbossMike May 19, 2021
76c5203
ci: use node 14
LevelbossMike May 20, 2021
f5eaa48
docs: fix linting issues node-files
LevelbossMike May 20, 2021
d8beeb2
chore: update deployment message gh-pages
LevelbossMike May 20, 2021
36e2b75
docs: easier selection for install command
LevelbossMike May 21, 2021
862c66c
docs: grammarly tutorial.md
LevelbossMike May 21, 2021
5d2e584
docs: grammarly statecharts.md
LevelbossMike May 21, 2021
eb0ae43
docs: remove addon-docs root-url
LevelbossMike May 21, 2021
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: 13 additions & 0 deletions tests/dummy/app/routes/application.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Route from '@ember/routing/route';
import RouterService from '@ember/routing/router-service';
import { inject as service } from '@ember/service';
import config from 'dummy/config/environment';
import { action } from '@ember/object';

import MetricsService from 'ember-metrics/services/metrics';

Expand All @@ -18,6 +20,17 @@ export default class ApplicationRoute extends Route {
this.setupTracking();
}

@action
didTransition(): void {
if (
config.environment !== 'test' &&
LevelbossMike marked this conversation as resolved.
Show resolved Hide resolved
window &&
typeof window.scrollTo === 'function'
) {
window.scrollTo(0, 0);
LevelbossMike marked this conversation as resolved.
Show resolved Hide resolved
}
}

private setupTracking() {
this.router.on('routeDidChange', () => {
const { currentURL, currentRouteName } = this.router;
Expand Down