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

feat: Add support for linking to section headings #783

Merged
merged 10 commits into from
Jul 31, 2023

Commits on Jul 30, 2023

  1. refactor(contentprovider): Clean up imports

    * Always use selective imports
    * Use `imported` for one-off uses of a module
    * Delete unused imports
    * Reorder imports to start of the function
    PetarKirov committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    05e88ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2b55af8 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Configuration menu
    Copy the full SHA
    0ad9d52 View commit details
    Browse the repository at this point in the history
  2. refactor(contentprovider): Rename getContent to getAllContent

    And use range algorithms in its implementation.
    PetarKirov committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    8f5cab9 View commit details
    Browse the repository at this point in the history
  3. feat(contentprovider,tour-controller): Add support for linking to sec…

    …tion headings
    
    With this change, links of the form
    `basics/delegates#anonymous-functions-lambdas` are no longer rejected. Instead,
    they're accepted and clicking on them leads to the browser navigating to the
    right page and highlighting the specific heading.
    
    This is done by:
    * Validating: stripping off the fragment part before checking of the given file exists
    * Adjusting the AngularJS (ng1) routing - enabling HTML5 mode (i.e. disabling
      the default "hashbang" mode) and disabling client-side URL rewriting
    * Adding a CSS rule to highlight the heading that the URL is linking to
    PetarKirov committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    45e6eed View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    88598a1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8399f14 View commit details
    Browse the repository at this point in the history
  6. build(dub): Upgrade deps

    PetarKirov committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    0687966 View commit details
    Browse the repository at this point in the history
  7. fix(exec/stupidlocal): Make lambda passed to runTask nothro

    Needed for compatibility with vibe.d 0.96.0.
    PetarKirov committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    2ffa86e View commit details
    Browse the repository at this point in the history
  8. fix(webinterface): Call toString on result of `GenericPath.Segment.…

    …name` to get an actual `string`
    
    Needed for compatibility with vibe.d 0.96.0.
    PetarKirov committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    1504117 View commit details
    Browse the repository at this point in the history