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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github codelab fetcher #1811

Merged
merged 2 commits into from
Apr 6, 2021
Merged

Add Github codelab fetcher #1811

merged 2 commits into from
Apr 6, 2021

Conversation

johnpryan
Copy link
Contributor

@johnpryan johnpryan commented Apr 6, 2021

this loads codelabs from GitHub when the correct query parameters are used:

http://localhost:8080/codelabs.html?gh_owner=johnpryan&gh_repo=example_codelab&gh_path=dart

Part of #1763

@johnpryan johnpryan merged commit 8737b55 into dart-lang:codelabs Apr 6, 2021
@johnpryan johnpryan mentioned this pull request Apr 6, 2021
18 tasks
johnpryan added a commit that referenced this pull request Apr 20, 2021
* Codelab UI - initial setup (#1807)

* initial setup

* setup YAML parsing

* format

* load codelab files

* move logic into CodelabUi class, start stubbing out code

* Set up right panels

* Add CodeMirror editor

* Add CodelabState

* fix HTML

* Add step buttons

* remove print

* Load code and update when the step changes

* Add run button and console panel

* add flutter_codelab

* Ignore /example/codelabs directory in analysis and builders

* Add tabs to console panel

* Get flutter compilation working

* add TODO

* exclude codelabs in dart_source_cleanup build step

* remove whitespace

* Add Github codelab fetcher (#1811)

* Add GithubCodelabFetcher

* make gh_ref and gh_path optional query parameters

* Add show solution button to Codelab UI (#1819)

* add codelabs.html to allowed files in main.py

* Add show solution button

* Run 'dart format --fix .'

* remove unused top-level variable

* remove lib/codelabs/src/meta.g.dart

* Revert "remove lib/codelabs/src/meta.g.dart"

This reverts commit 3353d19.

* add --delete-conflicting-outputs to grind build task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants