This repository has been archived by the owner on Apr 22, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
New documentation for chapter 1 #70
Open
kyragaut
wants to merge
33
commits into
webrecorder:master
Choose a base branch
from
unknown repository
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
e4dd38b
first commit of chapter 1: intro to web archiving, autopilot, and ins…
6177866
Added file for chapter 2 documentation
9d52ef2
install section of chapter 1 modified to include a way to install aut…
e986ba6
fixed in-line code to be code blocks and added some usage info
f0becd0
Added documentation for the usage of autopilot
c7b64e3
Added headlines to chapter 2, some usage information for Docker (may …
d29919e
last commit didn't work right, trying again
aa36246
Started the guide on how to write a behavior for people with little j…
34fb47e
Progress on the Format section for chapter 2 under Creating Your Firs…
a164403
Added more for format section, putting in code examples
9f978c9
fixing some stuff in format, adding some stuff in a new section expla…
1060548
wrote some stuff on the expected format of the export metadata object
200d604
added info on the match property in the metadata export
a9677ba
finished the tutorial on how to create a behavior in chapter 2
6ec4f75
added files for chapters 3, 4, and reference:API
959aa5a
added more steps into the "how to make a behavior" section of chapter…
41cc5e0
changed the title of the section after "setting up your file" to "get…
8259197
added stuff about using the `newBehavior` CLI in the getting started …
8a038f3
added directions for Testing your first behavior using the CLI
223c244
fixed some small formatting things
edbfea4
moved chapters to manual
d038ae7
wrote directions for how to set up config file in "testing your first…
2fa30a0
wrote the "fixing a broken behavior" section
d1eb53c
I don't remember what my changes were
ae14f2c
started the FAQ document
03c17d6
moved some advanced stuff from chapter 2 into chapter 3
005fa31
added a code of conduct to the manual
ce81db2
removed some stuff that was covered in chapter 2
4436c78
updated chapter 1
kyragaut 422c4c4
moved locations of the chapters
kyragaut 47ab4e8
moved locations of chapters
kyragaut 681d0c6
Moved the chapters to the correct locations
kyragaut 0ed0640
added bug report format file
kyragaut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,66 @@ Commands: | |
help [cmd] display help for [cmd] | ||
``` | ||
|
||
The cli provides two commands API and behaviors and each command has its own options. | ||
|
||
# Behaviors command | ||
|
||
Execute `./bin/cli behaviors -b` to build the behaviors made available, using the config file located at the root of the project. | ||
|
||
The built behaviors, along with a behavior metadata file (`behaviorMetadata.js`), can be found in the `dist` directory which will be created for you if it does not exist in the root of this project. | ||
|
||
The following options are available to use with the behaviors command: | ||
|
||
``` | ||
|
||
$ ./bin/cli behaviors --help | ||
|
||
Usage: cli-behaviors [options] | ||
|
||
Options: | ||
-V, --version output the version number | ||
-v, --validate [fileOrDir] | ||
-c, --config [configPath] Path to the behavior config file (default: "<path to wr-behaviors>/behavior-config.yml") | ||
-b, --build [fileOrDir] Build a behaviors or all behaviors contained within a directory (default: true) | ||
-w, --watch [behaviorFileOrDir] Watch the files, and their imports, in the build directory for re-bundling on changes (placed in dist directory) | ||
--metadata [dumpDir] Generate behavior metadata, optionally supplying a path to directory where metadata is to be placed. Defaults to current working directory | ||
-h, --help output usage information | ||
``` | ||
|
||
|
||
# API command | ||
|
||
To run the behavior API server execute `./bin/cli api --build-behaviors`. | ||
|
||
This will start the API server after all behaviors provided by this project have been built. | ||
|
||
If you have already built the behaviors using the `behaviors` command provided by the cli then you may omit the `--build-behaviors` flag. | ||
|
||
The following options are available to use with the API command: | ||
|
||
``` | ||
$ ./bin/cli api --help | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
|
||
Usage: cli-api [options] | ||
|
||
Options: | ||
-V, --version output the version number | ||
-p, --port [port] The port the api server is to bind to (default: 3030) | ||
-h, --host [host] The host address the server is listen on (default: "127.0.0.1") | ||
-b, --behaviorDir [behaviorDir] The path to the directory containing the build behaviors (default: "<path to wr-behaviors>/dist") | ||
-m, --behaviorMetadata [medataPath] The path to the behavior metadata (default: "<path to wr-behaviors>/dist/behaviorMetadata.js") | ||
--build-behaviors Should the api server build the behaviors for starting up | ||
-h, --help output usage information | ||
``` | ||
|
||
Some configuration of the API server can be done via the environment variables listed below | ||
|
||
* `BEHAVIOR_API_HOST`: the host the api server will use (e.g. 127.0.0.1) | ||
* `BEHAVIOR_API_PORT`: the port the api server will listen on (e.g. 3030) | ||
* `WR_BEHAVIOR_DIR`: path to the directory containing the built behaviors | ||
* `WR_BEHAVIOR_METADATA_PATH`: path to the behavior metadata file | ||
* `BUILD_BEHAVIORS`: should the api server build the behaviors before starting | ||
|
||
//I can't yet explain how to use autopilot in the browser since the extension isn't finished yet, right? | ||
kyragaut marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## About Web Traffic | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as this is intended as a quick getting started guide I think that we don't need to put this output of
help
in here