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

[documentation (deploy)] deploy docsify in docker. #1241

Merged
merged 5 commits into from
Jun 23, 2020
Merged

[documentation (deploy)] deploy docsify in docker. #1241

merged 5 commits into from
Jun 23, 2020

Conversation

Koooooo-7
Copy link
Member

Summary
A toturial about building docsify in docker.
Docker is getting more popular, so I wanna rich the deploy ways for docsify.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Build-related changes
  • Other, please describe:

If changing the UI of default theme, please provide the before/after screenshot:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)

You have tested in the following browsers: (Providing a detailed version will be better.)

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature
  • Related documents have been updated
  • Related tests have been updated

To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.

Other information:


  • DO NOT include files inside lib directory.

@vercel
Copy link

vercel bot commented Jun 22, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/gfuhxhs2l
✅ Preview: https://docsify-preview-git-fork-koooooo-7-docker-doc.docsify-core.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 22, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 682330e:

Sandbox Source
naughty-carson-q4oki Configuration

docs/deploy.md Outdated Show resolved Hide resolved
docs/deploy.md Outdated Show resolved Hide resolved
docs/deploy.md Outdated Show resolved Hide resolved
docs/deploy.md Outdated Show resolved Hide resolved
docs/deploy.md Outdated Show resolved Hide resolved
trusktr
trusktr previously approved these changes Jun 22, 2020
Copy link
Member

@trusktr trusktr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to provide people some options/ideas. Do we want to provide a boilerplate repo ready for Docsify?

anikethsaha
anikethsaha previously approved these changes Jun 22, 2020
docs/deploy.md Outdated

## Docker

>There is a simple demo for building docsify in docker.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this? I'm not sure why this is here (or why it's formatted using a blockquote)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, it is unnecessary.

docs/deploy.md Outdated

>There is a simple demo for building docsify in docker.

?> tips: you can create all the files for this demo from [Quickstart](https://docsify.js.org/#/quickstart?id=initialize).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link to the Quickstart should be provided under the docsify bullet below, not above it. Otherwise, this tip implies "all of the files for this demo" including a docker file, which the Quickstart section does not discuss. Recommend removing this and just adding a link (not a tip) under the docsify bullet below.

docs/deploy.md Outdated

?> tips: you can create all the files for this demo from [Quickstart](https://docsify.js.org/#/quickstart?id=initialize).

- Preparing Docsify initial files
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making bullet names consistent: "Create docsify files"

docs/deploy.md Outdated
?> tips: you can create all the files for this demo from [Quickstart](https://docsify.js.org/#/quickstart?id=initialize).

- Preparing Docsify initial files
You need prepare the initial files (generated by run `docsify init ./docs`) instead of making in container.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent outdated instructions here, let's just refer people to the Quickstart guide: "See the Quickstart section for instructions on how to create these files manually or using docsify-cli."

(Quickstart section and docsify-cli should be linked)

docs/deploy.md Outdated
README.md
```

- Dockerfile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making bullet names consistent: "Create dockerfile"

docs/deploy.md Outdated
Dockerfile
```

- Build Image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making bullet names consistent: "Build docker image"

docs/deploy.md Outdated
docker build -f Dockerfile -t docsify/demo .
```

- Run
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making bullet names consistent: "Run docker image"

Copy link
Member

@jhildenbiddle jhildenbiddle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!!

@jhildenbiddle
Copy link
Member

Nice work, @Koooooo-7. Thanks for being patient with all of the change requests. :)

@Koooooo-7
Copy link
Member Author

boilerplate

yep, I agree.
I stored it in my own repo.
As @jhildenbiddle mentioned, its not a good idea to handle another resource outside.
so , we can think about if we need build a resource repo to provide those

Nice work, @Koooooo-7. Thanks for being patient with all of the change requests. :)

Glad to make it concise and accurate . xD

trusktr added a commit that referenced this pull request Jul 4, 2020
* develop:
  docs: removed codefund docs and plugin (#1262)
  docs: remove bundle size from the home page and documentation (#1257)
  fix: search can not search the table header (#1256)
  fix: after setting the background image, the button is obscured (#1234)
  Fix: fixed onlycover flag in mobile (#1243)
  fix: Updated docs with instructions for installing specific version (fixes #780) (#1225)
  fix: Add error handling for missing dependencies (fixes #1210) (#1232)
  [documdocs:  deploy docsify in docker. (#1241)
  docs: Add embed gist instructions to Embed Files (fixes #932 ) (#1238)
  chore: add changelog 4.11.4
  [build] 4.11.4
  feat: added html sanitizer for remote rendering (#1128)
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.

5 participants