diff --git a/sx/sxc/pages/docs.sx b/sx/sxc/pages/docs.sx index 15a8bd6..214807e 100644 --- a/sx/sxc/pages/docs.sx +++ b/sx/sxc/pages/docs.sx @@ -402,25 +402,6 @@ :selected "Roadmap") :content (~plan-isomorphic-content)) -(defpage isomorphism-page - :path "/isomorphism/" - :auth :public - :layout (:sx-section - :section "Isomorphism" - :sub-label "Isomorphism" - :sub-href "/isomorphism/" - :sub-nav (~section-nav :items isomorphism-nav-items - :current (find-current isomorphism-nav-items slug)) - :selected (or (find-current isomorphism-nav-items slug) "")) - :content (case slug - "bundle-analyzer" (~bundle-analyzer-content - :pages pages :total-components total-components :total-macros total-macros - :pure-count pure-count :io-count io-count) - "routing-analyzer" (~routing-analyzer-content - :pages pages :total-pages total-pages :client-count client-count - :server-count server-count :registry-sample registry-sample) - :else (~plan-isomorphic-content))) - (defpage bundle-analyzer :path "/isomorphism/bundle-analyzer" :auth :public @@ -463,6 +444,26 @@ :server-time server-time :items items :phase phase :transport transport)) +;; Wildcard must come AFTER specific routes (first-match routing) +(defpage isomorphism-page + :path "/isomorphism/" + :auth :public + :layout (:sx-section + :section "Isomorphism" + :sub-label "Isomorphism" + :sub-href "/isomorphism/" + :sub-nav (~section-nav :items isomorphism-nav-items + :current (find-current isomorphism-nav-items slug)) + :selected (or (find-current isomorphism-nav-items slug) "")) + :content (case slug + "bundle-analyzer" (~bundle-analyzer-content + :pages pages :total-components total-components :total-macros total-macros + :pure-count pure-count :io-count io-count) + "routing-analyzer" (~routing-analyzer-content + :pages pages :total-pages total-pages :client-count client-count + :server-count server-count :registry-sample registry-sample) + :else (~plan-isomorphic-content))) + ;; --------------------------------------------------------------------------- ;; Plans section ;; ---------------------------------------------------------------------------