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

Misc doc changes #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

kianmeng
Copy link

List of changes:

  • Set readme as default html doc page
  • Use common source url
  • Always get latest greatest ex_doc version
  • Badges and more badges!
  • Fix indentation

@flowerett
Copy link
Owner

Hello @kianmeng
Thank you for the contribution!
I didn't expect an input so fast, and already pushed a couple of changes to master, could you rebase?

List of changes:

- Set readme as default html doc page
- Use common source url
- Always get latest greatest ex_doc version
- Badges and more badges!
- Fix indentation
@kianmeng
Copy link
Author

Hello @kianmeng
Thank you for the contribution!
I didn't expect an input so fast, and already pushed a couple of changes to master, could you rebase?

@flowerett Done. 😃

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
mix.exs Show resolved Hide resolved
mix.exs Show resolved Hide resolved
@kianmeng
Copy link
Author

@flowerett Let me know if there are additional changes. Feel free to amend it to your needs. Remember to squash all commits before merging. 😄

README.md Outdated
@@ -21,31 +25,14 @@ def deps do
end
```

## Basic Usage
<!-- MDOC !-->
Copy link
Owner

Choose a reason for hiding this comment

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

This looks hacky, not sure if I like this.

Copy link
Author

Choose a reason for hiding this comment

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

This looks hacky, not sure if I like this.

Removed.

Use the `refresh/0` function
It will run `REFRESH MATERIALIZED VIEW [view_name];` query.
#{
readme
Copy link
Owner

@flowerett flowerett Nov 17, 2020

Choose a reason for hiding this comment

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

Maybe we don't need all docs here, just a short introduction for the module.
But reading from file and removing injected stop keys seems to be too much.

Copy link
Author

@kianmeng kianmeng Nov 18, 2020

Choose a reason for hiding this comment

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

Maybe we don't need all docs here, just a short introduction for the module.
But reading from file and removing injected stop keys seems to be too much.

Agree. Since the generated doc for Ecto.Vista does not contains any information relevant to user like functions or callback list. See screenshot below.

image

Come to think of it, perhaps we should just simple ignore this Ecto.Vista and set it to @moduledoc false since it does not convey any helpful information (shown in screenshot above). Unless, you've plan to add more details?

I've set the main page back to readme since right now it contains all the usage doc.
Let me know.

@@ -2,65 +2,6 @@ defmodule EctoVista do
@moduledoc """
Provides the macros and functions to define and manage
PostgreSQL views with Ecto.

## Using EctoVista
Copy link
Owner

Choose a reason for hiding this comment

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

I was just thinking again about it and come to conclusion that I would prefer more meaningful changes than just moving from one file to another.
If you don't mind I'll revert the docs part of your PR

@kianmeng
Copy link
Author

@flowerett Any updates on this?

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.

None yet

2 participants