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

[COMMUNITY HELP!!] Site docs and so on #49

Open
gianarb opened this issue Aug 31, 2017 · 4 comments
Open

[COMMUNITY HELP!!] Site docs and so on #49

gianarb opened this issue Aug 31, 2017 · 4 comments

Comments

@gianarb
Copy link
Owner

gianarb commented Aug 31, 2017

Now that we have a logo, some documentation and the project is reaching a good stability I think we should think about a static fancy site. As you probably now I am not able to make anything good in terms of colors and design.

I think we can use a subdomain from scaledocker.com like orbiter.scaledocker.com

I am looking for some help!!

@bvis
Copy link

bvis commented Aug 31, 2017

I'm used to use mkdocs and I think it's simple, powerful and beautiful.

You just need to use markdown in your doc files, and create an index file to give them a title and define a navigation menu. I'm currently using this docker image for this purpose: MKDocs Material.

In summary:

  • I've a stack file with the definition of the docs of the site and I'm using it for CD of the docs.
  • docker-compose.docs.yml
version: "3.1"

networks:
  docs-network:

services:
  docs:
    build:
      context: .
      dockerfile: ./docs/Dockerfile
    image: REGISTRY/IMAGE:${PROJECT_DOCS_VERSION:-local}
    networks:
      - docs-network
    deploy:
      mode: replicated
      resources:
        limits:
          cpus: '0.1'
          memory: 64M
        reservations:
          cpus: '0.05'
          memory: 16M
  • For development I have an extended docker-compose.docs.override.yml file:
version: "3.1"

services:
  docs:
    volumes:
      - ./docs:/docs/docs
      - ./docs/mkdocs.yml:/docs/mkdocs.yml
    ports:
      - "8000:8000"

In my docs folder I have the Dockerfile, the mkdocs.ymland the Markdown files.

  • Dockerfile
FROM squidfunk/mkdocs-material:1.7.4

COPY ./docs /docs/docs
COPY ./docs/mkdocs.yml /docs/mkdocs.yml
  • mkdocs.yml
site_name: Doc Title
pages:
  - Home: index.md
  - Section1:
    - Page1: page1-1.md
    - Page2: page1-2.md
  - Section2:
    - Page1: page2-1.md
    - Page2: page2-2.md
    - Etc
repo_url: https://my-repo.address
edit_uri: src/master/docs/
site_author: It's me
copyright: Copyright © 2017 My Copyright
strict: true
theme: 'material'
extra:
  palette:
    primary: 'blue'
    accent: 'light blue'
markdown_extensions:
  - toc
  - admonition
  - codehilite(guess_lang=false)
  - toc(permalink=true)
  - footnotes
  - pymdownx.arithmatex
  - pymdownx.betterem(smart_enable=all)
  - pymdownx.caret
  - pymdownx.critic
  - pymdownx.emoji:
      emoji_generator: !!python/name:pymdownx.emoji.to_svg
  - pymdownx.inlinehilite
  - pymdownx.magiclink
  - pymdownx.mark
  - pymdownx.smartsymbols
  - pymdownx.superfences
  - pymdownx.tasklist(custom_checkbox=true)
  - pymdownx.tilde
  • Another thing I do is to create a symbolic link in the project from the docs/index.md to the README.md file to not to duplicate the initial project description.

All you need from here is just to play with some configuration options and integrate the deployment with your favourite tool for CD and map your deployed doc with the DNS you suggested orbiter.scaledocker.com.

If you like this idea I could provide you more details.

@gianarb
Copy link
Owner Author

gianarb commented Aug 31, 2017

Hello @bvis thanks for your feedback. I know very well mkdoc and I agree it can be a good solution. I am concerned about the layout, colors and thinks like that!

@bvis
Copy link

bvis commented Aug 31, 2017

Why don't use the default colors? They are well balanced, once you see it's the right tool you could invest time on the colors, I think the default layout is good enough.

@pascalandy
Copy link

If you want to manage this project with Ghost let me know, I'll be glad to host it.

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

No branches or pull requests

3 participants