I'm using the glossaries package and I'm trying to create my own style for printing the glossary. Specifically, I'd like my glossary to appear in a particularly formatted tabularx table. I've been trying to refer to the documentation, but they don't go into that much detail concerning this and the only other resource I could find was this answer which now appears to be out of date as even the provided answer doesn't work for me.
Ultimately, what I have in my MWE below fails with a misplaced \noalign issue. Can anyone show me a way to create the glossary using the table format I'm trying to achieve?
Minimum (non-)Working Example
\documentclass{article}
\usepackage[table]{xcolor} % Provides coloring for tables and text
\usepackage{tabularx} % Customized table formatting
\usepackage{environ} % Used to define custom table environment
\usepackage[acronym]{glossaries}
% Define table related commands and properties
\definecolor{greyblue}{rgb}{0.6353,0.6863,0.7686} % Define a color used in the tables
\newcommand\setrow[1]{\gdef\rowmac{#1}#1\ignorespaces} % Used for making a row bold
\newcommand\clearrow{\global\let\rowmac\relax} \clearrow % Used for clearing a row formatting
\newcolumntype{C}[1]{>{\hsize=#1\hsize\rowmac\centering\arraybackslash}X} % Centered column, input is relative width of page
\newcolumntype{L}[1]{>{\hsize=#1\hsize\rowmac\raggedright\arraybackslash}X} % Left-aligned column, input is relative width of page
\newcolumntype{R}[1]{>{\hsize=#1\hsize\rowmac\raggedleft\arraybackslash}X} % Left-aligned column, input is relative width of page
\makenoidxglossaries
\newglossarystyle{docstyle}
{%
\renewenvironment{theglossary}
{%
\table[!htbp]
\centering
\rowcolors{2}{black!5}{black!15}
\tabularx{\linewidth}{C{0.25}|L{0.75}<{\clearrow}}%
\hline
\rowcolor{greyblue} \setrow{\bfseries} % Make the header row bold and colored grey-blue
}{
\hline
\endtabularx
\caption{Abbreviations}
\label{tbl:abbrev}
\endtable
}
\renewcommand*{\glossaryheader}{}%
% Don't do anything between letter groups
\renewcommand*{\glsgroupheading}[1]{}%
\renewcommand*{\glsgroupskip}{}%
% Set display for each the acronym entry
\renewcommand{\glossentry}[2]{%
\glstarget{##1}{\glsentryshort{##1}}% short form
&
\glsentrylong{##1}% long form
\\% end of row
}%
}
\newacronym{ABC}{ABC}{Alphabet}
\begin{document}
\gls{ABC}
\gls{ABC}
\printnoidxglossary[type=\acronymtype,style=docstyle]
\end{document}