Skip to content

docs: separate template syntax into multiple docs - #36954

Closed
kapunahelewong wants to merge 1 commit into
angular:masterfrom
kapunahelewong:template-syntax-phase1
Closed

kapunahelewong wants to merge 1 commit into
angular:masterfrom
kapunahelewong:template-syntax-phase1

Conversation

@kapunahelewong

@kapunahelewong kapunahelewong commented May 6, 2020 •

Copy link
Copy Markdown
Contributor

This is part of a refactor of template syntax and structure. The first phase (this PR) breaks out template syntax into multiple documents. The second phase will be a rewrite of each doc (forthcoming PR after this one lands).

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Currently all info is all in one long document.

Issue Number: N/A

What is the new behavior?

There is a new section in the same location of the NAV of template syntax. This new section expands to show new documents. Each doc is from a section of the current template syntax.

Specifically, this PR does the following:

  • Breaks sections of the current template syntax document each into their own page.
  • Corrects the links to and from these new pages.
  • Adds template syntax subsection to the left side NAV which contains all the new pages.
  • Adds the new files to pullapprove.

This PR does not rewrite content for the sub-pages beyond making them standalone pages with the example link and making sure the language doesn't refer to a non-existent "above" or "below" section. The original template-syntax.md file now only retains the intro (slightly reworked to refer correctly to the other pages rather than "below") and a list of the new pages and what those pages offer.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Preview: https://pr36954-ff6050d.ngbuilds.io/guide/template-syntax

@ngbot ngbot Bot modified the milestone: Backlog May 6, 2020
@kapunahelewong
kapunahelewong marked this pull request as ready for review May 6, 2020 17:04
@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@kapunahelewong kapunahelewong added the action: review The PR is still awaiting reviews from at least one requested reviewer label May 13, 2020
@kapunahelewong kapunahelewong changed the title [WIP] docs: separate template syntax into multiple docs docs: separate template syntax into multiple docs May 13, 2020
@mary-poppins

Copy link
Copy Markdown

@jbogarthyde

Copy link
Copy Markdown
Contributor

I think you could put all the Binding Syntax topics into one longer page - it will not be as long when we have tightened up the language and organization. The first one would be the Overview section, with links to the topic sections in the table that already lists the binding types.

The three Directives topics (Built-in, Attribute, Structure) could be combined into a sibling section of Template Syntax

  • The parent section landing page (currently Displaying Data in Views) would point to those major sections (Binding Syntax and Directives)
  • The Template Syntax landing page could point to Directives as the last of the Next Steps -- another aspect of how templates are related to components.

@kapunahelewong
kapunahelewong marked this pull request as draft June 17, 2020 20:36
@mary-poppins

Copy link
Copy Markdown

@kapunahelewong
kapunahelewong marked this pull request as ready for review July 9, 2020 21:58
@mary-poppins

Copy link
Copy Markdown

@aikithoughts aikithoughts left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. Thanks for doing this.

Reviewed-for: global-docs-approvers

@jelbourn jelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM - using global approval for the files in pullapprove.yml

Reviewed-for: global-approvers

@jelbourn

Copy link
Copy Markdown
Contributor

@kapunahelewong it does look like the commit message needs a slight tweak

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

This is part of a re-factor of template syntax and
structure. The first phase breaks out template syntax
into multiple documents. The second phase will be
a rewrite of each doc.

Specifically, this PR does the following:

- Breaks sections of the current template syntax document each into their own page.
- Corrects the links to and from these new pages.
- Adds template syntax subsection to the left side NAV which contains all the new pages.
- Adds the new files to pullapprove.
@mary-poppins

Copy link
Copy Markdown

@kapunahelewong kapunahelewong added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 20, 2020
AndrewKushnir pushed a commit that referenced this pull request Jul 20, 2020
This is part of a re-factor of template syntax and
structure. The first phase breaks out template syntax
into multiple documents. The second phase will be
a rewrite of each doc.

Specifically, this PR does the following:

- Breaks sections of the current template syntax document each into their own page.
- Corrects the links to and from these new pages.
- Adds template syntax subsection to the left side NAV which contains all the new pages.
- Adds the new files to pullapprove.

PR Close #36954
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Aug 20, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
This is part of a re-factor of template syntax and
structure. The first phase breaks out template syntax
into multiple documents. The second phase will be
a rewrite of each doc.

Specifically, this PR does the following:

- Breaks sections of the current template syntax document each into their own page.
- Corrects the links to and from these new pages.
- Adds template syntax subsection to the left side NAV which contains all the new pages.
- Adds the new files to pullapprove.

PR Close angular#36954
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes effort3: weeks risk: medium target: patch This PR is targeted for the next patch release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants